Pattern: Triangle of numbers

Moderate
0/80
11 upvotes
Asked in companies
DunzoHCL TechnologiesUnthinkable Solutions

Problem statement

Pattern for N = 4


The dots represent spaces.



Detailed explanation ( Input/output format, Notes, Images )
Input format :
Integer N (Total no. of rows)
Output format :
Pattern in N lines
Constraints :
0 <= N <= 50
Sample Input 1:
5
Sample Output 1:
           1
          232
         34543
        4567654
       567898765
Sample Input 2:
4
Sample Output 2:
           1
          232
         34543
        4567654
Approaches (1)
Time Complexity
Space Complexity
Code Solution
(100% EXP penalty)
Pattern: Triangle of numbers
Full screen
Console