← ALL NOTES
Hash Table

2840. Check if Strings Can be Made Equal With Operations II

Given strings s and t of equal length n. One operation swaps any two characters in one string if their indices have the same parity (both even or both odd). Decide whether s can be made equal to t.…

Loading…