Low effort problem
CodeChefOpen on judge ↗
You'll be given an array $A$ containing $N$ non-negative integers such any two adjacent elements will differ by only one bit in their binary representation. You have to tell if their exist eight numbers in $A$ such that their collective $xor$ is $0$. ###Input: - First line contains one integer $N$ - The second line contains $N$ space seperated non-negative integers denoting elements of $A$
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