2

Rectangular Numbers

Difficulty: MEDIUM
Avg. time to solve
30 min
Success Rate
70%

Problem Statement
Suggest Edit

Pattern for N = 4

4444444
4333334
4322234
4321234
4322234
4333334  
4444444
Input format:
N (Total no. of rows)
Output format:
Pattern in N lines
Constraints :
1 <= N <= 400
Sample Input :
3
Sample Output :
33333
32223
32123
32223
33333
Want to solve this problem? Login now to get access to solve the problems