HackerRank: Left facing triangle with odd, ascending numbers
Given an integer, print the pattern as indicated in the sample testcases.
Input Format
A single integer
Constraints
None
Output Format
The given pattern
Sample Input 0
3
Sample Output 0
1
13
135
Sample Input 1
5
Sample Output 1
1
13
1...
imkraman.hashnode.dev1 min read