Not able to unterstand the logic

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

                        1 
                    2 1   1 2 
                3 2 1       1 2 3 
            4 3 2 1           1 2 3 4 
                3 2 1       1 2 3 
                    2 1   1 2 
                        1

hello @dipeshpandey2001

see each row as follows

spaces | numbers in decreasing order | spaces | number in increasing order

and handle each of them seprately.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.