← All problemsSign in

Adjustable BookShelf

Problem description. Harshit is a librarian.In his library he has only one bookshelf of infinite height but finite width such that a shelf can contain only K numbers of books and that the height of each row is vertically adjustable. Harshit has height H and a stair of height S. He is given N number of books of different heights which is to be put into the shelf. He can do this only if he reach

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