← All problemsSign in

Train Journey

Its already half way through the semester and Mahima just like always is late to book her train ticket. Luckily there are still some seats left in the train. But with just a few seats left her chances of getting a lower seat in very low. She books her seat and gets a seat no $S$. She now needs your help to figure out what kind of seat she got. There are in general 5 types of seats - lower, middl

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start