Grand Staircase
CodeChefOpen on judge ↗
Problem description. The grand staircase often known as Hogwarts Staircase, is a massive structure in Hogwarts castle which is a moving staircase and can simply connect any floors at any point of time. Although there are witches and wizards they can’t jump multiple steps they can only take one step at a time. One day Hermione Granger and Harry potter are in hurry to meet professor Dumbledore but
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