What is wrong in the code?

Link: https://ide.codingblocks.com/s/313500
I am getting the correct output but the test case is failing!

hi @18bcs036 check for 102

Hi @Ishitagambhir how to solve this edge case. For 102 I modified the code and got AB and JB as answer but it’s still failing. Please help me to correct this https://ide.codingblocks.com/s/313500

@18bcs036 for 102, AB is not possible, you cant simply ignore a number
only JB should be made

Still not working https://ide.codingblocks.com/s/313500 :slightly_frowning_face:

hi @18bcs036
your code is failing for this testcase: 9999

Thank you so much @Ishitagambhir Finally, this is solved :slight_smile:

1 Like

@18bcs036 dont forget to mark the doubt as resolved :slight_smile:

1 Like