← All problemsSign in

BRAN AND MARBLES

$Bran Stark$ is a good kid, but one day a sudden misfortune happened and he lost his walking ability. one day he wanted to play a game but the $Measter$ told him to take rest and don't go outside. So his brother $Rob Stark$ bring things for him contains a plane of paper and marbles. $Rob$ has given a task for him. First, Rob placed all marbles at different heights in a verticle plane and told

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