← All problemsSign in

Basket-Street

Aakash Chan the builder is given the task of constructing an expensive hotel in Bakerstreet. He is given N pillars to start with. To make the hotel look good all the N pillars should be of the same height. You can either decrease or increase the height of a pillar. To change the height of the i th pillar, where 1You must help Aakash by printing the height at which all the pillars must be set to

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