Sport Jersey
CodeChefOpen on judge ↗
Problem description. NITR is organizing a sports fest. The students can be assigned jersey numbers from 1 to N. The jersey numbers of the students may be repeated. Now, the coach instructs the students to stand in a queue based on their jersey numbers such that the jersey numbers of the students standing in queue are either in non-decreasing or in non-increasing order. Find the total number of su
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