Piyush and Bitwise-operation
CodeChefOpen on judge ↗
Piyush learnt bitwise-operation recently. He got very fascinated about bitwise-operation for its wonderful uses. But his girlfriend is not sure of that he has enough skills to solve bitwise-operation problem. So, she decides to test his skills by giving a problem. She gave N non-negative integers A1, A2,...AN, and asks him to find the pair of integers such that AND operation on that pair of intege
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