Umesh and Marbles
CodeChefOpen on judge ↗
Umesh has a collection of marbles because he loves to collect marbles. Since Umesh and Raman are friends, Umesh asked Raman a logical problem to test his IQ. He asked :- I have some marbles each with a numeric code written on it where the code can be (0, 1, 2, 3, ...., $N-1$). If I give you an array of integers where $i$-th element of the array represents the number of marbles with the code on
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