← All problemsSign in

Plan the Vacation

Amit, Himanshu and their friends being in the penultimate year of their college life, wanna spend most of their time in touring places like Pondichery, Delhi and Masoori. But this time they are planning big. Yes, GOA it is! For staying in hotel, they have to book N rooms in the hotel which has M rooms in total, some of which are available and some are not. Be their trivago, and help them chhose 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.

voice by Sarvam AI

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

Sign in to start