Reverse XOR: Cracking the Palindrome Code (Codeforces Problem)
When I first read the Reverse XOR problem on Codeforces, my instinct was to reach for a brute-force loop. After all, the task seems simple:
Does there exist a positive integer x such that x ⊕ reverse(x) = n?
Where reverse(x) means reversing the binar...
codeforcesarchive.hashnode.dev2 min read