← All problemsSign in

The Tower of God

The Tower of God is an ancient, mythological structure believed to be existing since the beginning of time itself. There is an infinite number of floors in the tower. Each Floor has a number associated with it starting from 1 all the way up ( 1,2,3,4,5 …). Our protagonist Bam is at floor X while his crush Rachael is on floor Y. Normally, each floor is connected only to its adjacent floors i.e from

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