Hash Table
1657. Determine if Two Strings Are Close
Two strings, two operations: swap any two existing characters, or swap all occurrences of one letter with all of another. Determine if they can be made equal. The operations reduce to two invariants:…
Loading…