← All problemsSign in

Alien Spiral

Despite indications to the contrary, India too has had its share of UFOs. There is enormous debate in UFO circles about the veracity of sightings of UFOs in the Aksai Chin area near Kashmir. A naughty local wanted to play truant and decided to set up a fake UFO base. To generate interest, he decided to draw square number patterns on the ground. The general pattern of the square was as follows:

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