The mysterious pattern
CodeChefOpen on judge ↗
A nerdy-King found a note written in Sanskrit which can be summarised as follows: - In order to bring miracles in his kingdom, he is supposed to put tiles on all the walls in his kingdom. - Each wall would represent a series of numbers that has been obtained from an unknown source. Each series contains N2 numbers. - The series should be placed on the wall in a spiral path as shown below, where
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