Help me out in this



33 testcases passed out of 35

I am checking till then be patient.
Moreover, if you can tell which test case you are failing it will be helpful.

@mr.encoder 1999999999 it is giving wrong output

What’s desired output for that?

The logic you have applied is the ideal , it should have got accepted


Take reference from here. And just omit the formatting it might get accepted.

@mr.encoder have tried all things can you modify it ?

Have you also tried the code which i have given above?

@mr.encoder i wanted what is the error in my code?

@mr.encoder the logic is same in both

That’s what i am saying bro, There’s no error in the implementation, it’s just the side cases left which always require special attention. That’s why i have given you the accepted code to just notice it , and i guess you can :slight_smile:

@mr.encoder thks hogaya