2839. Check if Strings Can be Made Equal With Operations I
You are given two strings
s1
ands2
, both of length4
, consisting of lowercase English letters.You can apply the following operation on any of the two strings any number of times:
- Choose any two indices
i
andj
such thatj - i = 2
, then swap the two characters at those indices in the string.Return
true
if you can make the stringss1
ands2
equal, andfalse
otherwise.
1 | class Solution { |