CodingMedium
Count Distinct Passwords
Filed under Fastenal
The question
Given a list of passwords made of lowercase letters, count how many distinct passwords exist, where two passwords are considered the same if one can be obtained by swapping the i-th and j-th character when (i+j)%2==0.
No write-up yet. Related questions below have one.
Related Fastenal questions
Collected from public candidate posts and coding forums. Updated Nov 2026.