Search
⌘K

Leetcode 2506. Count Pairs Of Similar Strings

Count the number of pairs of words that contain exactly the same set of unique characters (order and frequency don't matter). Group words by their character-set signature (e.g., set or bitmask) and sum the pair counts for equal signatures.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.