4 ms·
Input: "abccdef" Your algorithm will report a match at "bccd" since the "a" wasn't removed from the bitmask.
by rep_lodsb 4y ago
Input: "abccdef"
Your algorithm will report a match at "bccd" since the "a" wasn't removed from the bitmask.
- DannyBee 4y agoYes, you are correct you would have to xor them back out
- actionfromafar 4y agoI swear I have seen this conversation before. A glitch?
- DannyBee 4y agoNo - he responded on both parts of the thread where i commented. I started to respond here as well, then updated it to redirect to the other comment so we don't end up with two long threads.
- nerpderp82 4y agoIf you XOR them together, you get back to the original conversation.