Check if One String Swap Can Make Strings Equal at DoorDash
Easy49.5% acceptance
This problem has 75.0% frequency at DoorDash.
Problem Description
You are given two strings `s1` and `s2` of equal length. A **string swap** is an operation where you choose two indices in a string (not necessarily different) and swap the characters at these indices. Return `true` _if it is possible to make both strings equal by performing**at most one string swa...
Read full problem and hintsTopics
Also asked at 4 companies
More DoorDash Questions
Search Suggestions SystemMediumMinimum Number of Steps to Make Two Strings AnagramMediumNext Greater Element IIIMediumBuddy StringsEasyTwo SumEasy
View all DoorDash questions