Hash Table
1790. Check if One String Swap Can Make Strings Equal
Equal-length strings s1, s2. You may perform at most one swap — pick two indices in one string and exchange their characters. Decide whether that can make the strings equal. Collect the mismatch…
Loading…