Bag Of Toffees
CodeChefOpen on judge ↗
Problem Description: Yay, its Mr. X’s birthday. Mr. X loves toffees and every year on his birthday he takes a packet of toffees to school with him. Every toffee has its own size and id. He is very particular/biased about the size/id of toffees he gives to his friends. You are his distribution incharge, every once in a while he’ll ask you to find the smallest toffee within an id range. Note: Tof
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