Why my test cases not passing code in description
hi @aakshatmalhotra100
ur logic was absolutely fine… just o/p was not the format which was expected… as it was visible in o/p shown it seemed as if there were 2 spaces in b/w while in backend only one was expected… i have made changes in ur code… its passing all test cases now… rest don’t worry ur code logic was correct…
corrected code -->https://ide.codingblocks.com/s/642683
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.