← All problemsSign in

Arrange the seats

There is going to be a Cricket match tonight for which N guests are invited. There are 9 rows, numbered from 1 to 9 in the stadium, each having several seats. Each row as well as each guest has some priority. Note: - Guest 1 is to be prioritized more than guest 2. Similarly guest 2 is to be more prioritized than guest 3 and so on. - Row 1 is superior to row2. Similarly row 2 is superior to row

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