Code written giving right answer in sample test cases but test cases failing
Test Cases Not Passing
@Jan19LP0018 you have to print the answer for every case given. For example in the sample input given in the question. :
2
12345
12134
You have to check the conditions for both the numbers. So your correct output is :
Yes
No
but your your is giving only :
Yes… It is not cheking the second number. So put all of this code in a loop which iterates for T number of times(T is given in the input) like shown below in the code :
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.