Unable to get AC

I’ve solved the question using multiple methods but not getting AC. Please Help !!!

Hey @rishabhtyagi.2306 try submitting this code


If it’s also not getting accept do let me know.

@mr.encoder This code is showing run time error on test 0. test 1 is getting AC

See if this code Works or not

If it also not works, let me know :slight_smile:

@mr.encoder This code is giving Wrong answer on both the test cases . :sweat_smile:

Oh no, I’ll send you the test case in your inbox , till then be patient

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.