Why my code is not accepting?
hello @kailash_01 you code is not being accepted because your code is printing the new line first and then printing the correct output.
@kailash_01 corrected code is https://ide.codingblocks.com/s/337184
if you feel your doubt is resolved please mark this as resolved .
Happy Learning!!
please tell me How i am printing new line first i put endl after printing the s.substr(strt,i-strt)
@kailash_01 I have made correction though.
This could be because there was no substr in the beginning and it is only printing endl.
If you do dry run then you would be able to understand in the better way .
i am still getting WaA
@kailash_01 i have checked the test cases the code corrected by me is giving correct ouput for all the test cases but still it is not passing the test cases .
i think this is because the logic of your code is not optimised or it is producing some random characters .
i will still see till then i would like you to understand this code which is passing all the test cases.
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.