Code is running perfectly against custom inputs, but no test cases are passing.
Code link:-https://ide.codingblocks.com/s/579264
Code is running perfectly against custom inputs, but no test cases are passing.
Code link:-https://ide.codingblocks.com/s/579264
Hi Debojyoti.
so error was here. u have done k<i. actually it should be k<str.size()
Consider an empty string its output should be blank but ur code is trying to print something. thats why testcases were not running.
Hope ur doubt is clear
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.