← All problemsSign in

Messed Binary

Binary Representation is Ilya's favourite. She loves binary representation so much that she has completely stopped using decimal representation. One day on their way to a hackathon her friend Vanya gave Ilya a simple problem to solve. Despite being crazy for binary numbers, Ilya is finding it difficult to answer Vanya problem. The problem is as follows: Given an array of N positive integers '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.

voice by Sarvam AI

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

Sign in to start