← All problemsSign in

Harry and the Books

Harry and Ron once again got caught by Finch doing something mischievious. As a punishment, they are asked to arrange books in the library. Now since its a magical world the library has 1000000 floors. Each book has the floor number written on it where it is to be kept. Your are given a list of integers BOOK[] containing the floor numbers where the book is to be kept in order. Each book will eithe

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