-
Notifications
You must be signed in to change notification settings - Fork 2
erase
bradendubois edited this page Nov 24, 2021
·
8 revisions
ID: erase
Difficulty: 1.8
CPU Time: 1 second
Memory: 1024 MB
For this, since each bit is handled completely independently from the others, and is simply flipped, an even number of flips should not change the bit, and an odd number should. Iterate through both strings in parallel, and if N % 2 == 0 and the bits are different, or N % 2 != 0 and the bits aren't different, there is an error.