frozenset-as-grouping-key

Status: IN

`frozenset(word)` is used as a hashable dictionary/Counter key to group strings by their distinct character sets, enabling O(n) grouping instead of O(n^2) pairwise comparison for set-equality predicates.

Source: entries/2026/06/06/count-pairs-of-similar-strings-solution.md

JSON