Number CIrcle
CodeChefOpen on judge ↗
Given input n, print numbers such that it forms a square with center value as 1 and subsequent layers of 2,3,4…n. There should be only one space between the numbers in one line. Constraints: 1<=n<=20 Input: number of layers of numbers, n Output Format: There should be only one space between the numbers. Sample Example 1: Input: 3 Output: 3 3 3 3 3 3 2 2 2 3 3 2 1 2 3 3
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