Count pairs of words with no letters in common

0
Remix

Given a list of strings, count the pairs that share no character. Encode each string's character set as a bitmask so a pair check is one AND, then group strings by mask to avoid comparing every pair when many strings repeat the same set.

NetflixTechnical phone screenLast asked Jul 2026
No answer yet. Write the first one; the best answer gets endorsed.