I have no idea why is this wrong suppose to be right
Hi @nalin1997, two things:
- Change “yes” to “Yes” and “no” to “No”, so that the output matches the desired output format.
- Consider the following test case:
1
00001
Your output: No
Expected Output: Yes
Rectify your code so that this testcase works fine.
If your doubt still persists, reply to this thread, else mark it as resolved.
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.