Hackerrank-Problem-Solving-Python-Solutions
Hackerrank-Problem-Solving-Python-Solutions copied to clipboard
Print a pattern of numbers
I want to solve the following problem , please assign me Hackerrank problem Print a pattern of numbers from to as shown below. Each of the numbers is separated by a single space.
4 4 4 4 4 4 4
4 3 3 3 3 3 4
4 3 2 2 2 3 4
4 3 2 1 2 3 4
4 3 2 2 2 3 4
4 3 3 3 3 3 4
4 4 4 4 4 4 4
Input Format: The input will contain a single integer .
Sample Input 0: 2
Sample Output 0: 2 2 2 2 1 2 2 2 2