MOUNTAINEERS
CodeChefOpen on judge ↗
Mountaineers Ishan and Rishabh recently trekked across a certain famous mountain range. The mountain range consists of $N$ mountains, extending from west to east in a straight line as $Mt. 1, Mt. 2, ..., Mt. N$. Ishan traversed the range from the west and Rishabh from the east. The height of $Mt.i$ is $hi$, but they have forgotten the value of each $hi$. Instead, for each $i$ $(1≤i≤N)$, they rec
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