Why solution not accepted?
@Harshit-Jha-2364832040305354
hello harshit,
check ur code output for following test case
1
2
2 21
it will give 212
but actual output should be 221
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.
please clarify what’s wrong in my code
@Harshit-Jha-2364832040305354 hey your logic of comparing is incorrect ,thats why its giving wrong ans,please check it again.
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.