ques:https://hack.codingblocks.com/app/contests/1975/75/problem
CODE: https://ide.codingblocks.com/s/379408
ERROR IN A PATTERN QUES
for input n=5
your output
1
2 1 1 2
3 2 1 1 2 3
2 1 1 2
1
correct output
1
2 1 1 2
3 2 1 1 2 3
2 1 1 2
1
you see the difference??
there are some extra space at the beginning
i have rectified the error
you can see the modified code
Modified Code
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.