Please tell mistake only 2 test cases passing

hi @ujj1804_1156aee80205d0bf ans for 999 is 900 check your code (if first digit is 9 dont change)

We dont have to change if first digit==9 bcz for eg no. is 945 it becomes 044 thus a 3 digit no. changes to 2 digit?

yes @ujj1804_1156aee80205d0bf no leading zero should be there

Thank you , all test cases passed.

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.