Chef cooking array
CodeChefOpen on judge ↗
As we all know space and run time plays a vital role in any program. So ,here our chef is having a problem in array elements . He doesn't have that much space to execute all elements one by one. Can you help him by manipulating the array elements into a single number in bits, such that numbers are represented in minimum number of bits required to represent each number in the array. ###Input:
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