Transform binary string A to B using XOR and OR moves
Filed under Sprinklr
The question
Given two binary strings A and B, in one move you can choose any two adjacent numbers from string A, replace one with their XOR and the other with their OR. Determine if string B can be formed from A after any number of moves.
No write-up yet. Related questions below have one.
Related Sprinklr questions
Collected from public candidate posts and coding forums. Updated Nov 2026.