Available question text
Given two length-4 strings where the only allowed operation is swapping characters at indices that differ by 2 (i.e., 0↔2 or 1↔3), determine whether s1 can be transformed into s2. This reduces to checking that the multisets of characters at even indices and at odd indices are the same in both strings.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2839. Check if Strings Can be Made Equal With Operations I
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source