The Lazy Algorithm
CodeChefOpen on judge ↗
Peeps back at IIITM Gwalior are poster-boys for all the lazybones in the house. They are out seeking ‘jugaad’, or the easiest/shortest way to do a job. You have a paper and pencil. There are several lines drawn on the paper. Each line is horizontal and no two lines are at same height. All the lines are arranged from highest to lowest height. You want to sketch a path from a starting point to the
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