← All problemsSign in

(JUNIOR) The pattern problem

For this question we want you to print a pattern. The pattern is such that the digits will form a rhombus. The largest digit n should be located in the centre. The digits should decrese as they approach the edges. for example, for n=5 the patter should like below. Your task is to print the pattern for any given n. Input - The first line contains the integer T, the number of test cases. - The n

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