HI Sir/Mam,
why my code give wrong output!
source link_https://online.codingblocks.com/app/player/106000/content/109914/4720/code-challenge
Code give wrong output!
sir i update it,but it’s still give one test case wrong!
Check now.
String s must be declared inside the loop for test case, else it will carry forward its previous value to the next test case.
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.