Tower Game
CodeChefOpen on judge ↗
Alice is given n bricks in a certain order of different size , and Alice is asked to build towers using them. Whenever two bricks are one on top of the other, the upper bricks must be smaller than the lower bricks. Alice must process the bricks in the given order. You can always either place the bricks on top of an existing tower, or begin a new tower. What is the minimum possible number of tower
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