ALGO OWLS 3
CodeChefOpen on judge ↗
3.Rohan’s father is a businessman who wants to start a restaurant in a hilly area. He’s so many places to choose from, so he wants to choose the best one based on its goodness. Now, as a punishment for Rohan, his father wants him to pick out the best location based on its goodness. A hill is a sequence of points in the format **(n-1, height$_{n-1}$)** and each point is connected with a segment. e.
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