← All problemsSign in

Chef and his study plans

Chefland has a very famous university. The university offers N courses. Each course runs for some consecutive range of days. You are given starting and ending days of the ith course by starti and endi, respectively. Our Chef wanted to enroll himself in the university. But he is not sure about the exact time period for which he wants to study. Though he has Q such tentative plans in his mind. Each

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