← All problemsSign in

Valkyrie in a Venture

There are $N$ towers in Asgard on points $1$ to $N$ inclusive on the $OX$ axis. For each valid $i$, the $i$-th tower has height $H_i$. Valkyrie is standing at point $0$ at height $0$ at ground level. If she starts to fly from height $0$ she can cover a total distance of $2*D$ from point $0$. There are $K$ boxes beside her which she can use to stand at any height from $0$ to $K$ from ground. Va

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