← All problemsSign in

The ODD AND

Alice and Bob were both given an array of integer arr, and were asked to solve a very different kind of puzzle. They are allowed to perform the operation on array like this : - you can add 1 to any element of the array They can perform the operation any number of time(can be zero also) on each of the array elements. The goal is to achieve AND of all elements to be odd, what is the minimum numbe

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start