Vishesh and his Hate for Even Numbers
Vishesh just found an array $A$ having $N$ positive integers. He hates even numbers and would like to make the array full of only odd numbers. To do so, he is allowed to do the following operation. - Pick a positive integer $X$ such that $X = 2^Y$ for some non-negative integer $Y$. Then, for all elements $A_i$ in $A$, if $A_i$ is divisible by $X$, then we divide $A_i$ by $X$ (in other words, we 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