← All problemsSign in

Peter, Apples and Oranges

Peter got good marks in his tests and was heading home. A chopper carrying food for some people stuck in a Natural Disaster was flying above him. However, a tragedy happens and the box carrying fruits breaks open. The box had Apples and Oranges which are now falling. In order to save the fruits, Spider-Man spins a web and the fruits get stuck on the web in an interesting pattern. - First Fruit i

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