Available question text
Determine whether you can transform binary string s into target by repeatedly picking indices i,j and replacing (s[i],s[j]) with (s[i] OR s[j], s[i] XOR s[j]); key observation: any string with at least one '1' can be transformed into any other string with at least one '1', while an all-zero string stays all-zero, so the answer is true iff s == target or both strings contain at least one '1'.
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 2546. Apply Bitwise Operations to Make Strings Equal
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source