BOOKS
CodeChefOpen on judge ↗
Problem Name: MYBOOKS Problem Definition : There are n students who are waiting in a queue for getting their favourite books from the library. The library contains infinite copies of m books. Now a student likes a particular book if the number of pages of that book lies in the range he wants. In short every student wants a book to be of l minimum pages and r maximum pages, where l and r varies
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.
Sign in to chat with the tutor and save your progress.
Sign in to start