My code for mirror star pattern (pattern 5) is giving the right output but it is not running the testcases

This is the link to the code that I have written for solving the MIRROR STAR PATTERN question. It gives the right output but doesn’t get submitted. Please help!

image
ur code is giving extra spaces than expected… try to correct it…
I have corrected ur code… https://ide.codingblocks.com/s/603158
it should work fine now…

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.

1 Like