← All problemsSign in

Accommodation Plan

Mr. Mathew’s daughter Julie is going to get married on February $14$th $2020$. He has decided for a function of at most $5$ days. He has arranged $K$ number of hotel rooms to accommodate his guests. He has strange guests, who are going to attend and depart the marriage party on different days. To save money, Mr. Mathew has thought of an accommodation plan to arrange $N$ number of guests in $K$ roo

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