Number Pattern 3

Easy
0/40
6 upvotes
Asked in companies
Info Edge India (Naukri.com)BlueStacksIHS Markit

Problem statement

Pattern for N = 4
1
11
121
1221
Detailed explanation ( Input/output format, Notes, Images )
Input format :
Integer N (Total no. of rows)
Output format :
Pattern in N lines
Sample Input :
5
Sample Output :
1
11
121
1221
12221
Approaches (1)
Time Complexity
Space Complexity
Code Solution
(100% EXP penalty)
Number Pattern 3
Full screen
Console