Search⌘ K
AI Features

Check if One String Swap Can Make Strings Equal

Check if One String Swap Can Make Strings Equal asks whether two equal-length strings can match after at most one swap in exactly one string, or no swap at all.

Statement

You are given two strings s1 and s2 of equal length. A string swap ...