The height issue
CodeChefOpen on judge ↗
A set of students are standing in a straight horizontal line(from right to left) and each student is looking in the right to left direction. Student A shall block the view of Student B if Student A is present to the left of Student B and Student A is taller than Student B. So the number of people a student can see (including himself/herself) is given by: {(the number of contiguous students just t
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