Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hour glass pattern #7

Closed
akshitagupta15june opened this issue Sep 25, 2020 · 3 comments
Closed

Hour glass pattern #7

akshitagupta15june opened this issue Sep 25, 2020 · 3 comments

Comments

@akshitagupta15june
Copy link
Member

Take N as input. For a value of N=5, we wish to draw the following pattern :

                  5 4 3 2 1 0 1 2 3 4 5
                    4 3 2 1 0 1 2 3 4 
                      3 2 1 0 1 2 3 
                        2 1 0 1 2 
                          1 0 1 
                            0 
                          1 0 1 
                        2 1 0 1 2 
                      3 2 1 0 1 2 3 
                    4 3 2 1 0 1 2 3 4 
                  5 4 3 2 1 0 1 2 3 4 5

Input Format

Take N as input.
Constraints

N <= 20
Output Format

Pattern should be printed with a space between every two values.
Sample Input

5

@akshitagupta15june
Copy link
Member Author

Add in patterns repo of python

@SubhradeepSS
Copy link

SubhradeepSS commented Sep 25, 2020

Add in patterns repo of python

@akshitagupta15june Would like to work on this issue for Hacktoberfest 2020

@CodesOfAnurag
Copy link
Contributor

hey @akshitagupta15june , check out pr #64 for this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants