33 testcases passed out of 35
Help me out in this
I am checking till then be patient.
Moreover, if you can tell which test case you are failing it will be helpful.
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.
Have you also tried the code which i have given above?
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