SPIN NUMBER
CodeChefOpen on judge ↗
print numbers in the spin sequence where number of rows are to be input by user. example: ###Input: the first and only line contains number rows. ###Output output should be single space separated pattern of n rows. ###Sample Input: 5 ###Sample Output: 1 2 3 4 5 16 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9 ###EXPLANATION: number i
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