Xor Palindrome
A ($1$-indexed) binary string $S$ of length $N$ is called a *xor palindrome* if the value of $S_i \oplus S_{(N + 1 - i)}$ is the same for all $1 \le i \le N$. For example, $0$, $1111$ and $0101$ are xor palindromes, while $1110$ and $110101$ are not. You are given a binary string $S$ of length $N$. Determine if it is possible to rearrange it to form a xor palindrome or not. ### Input - The firs
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start