Why its showing 2 test case failed?
@Ashu1318
for 899 its giving 1
for 900 its giving tle
check it
use string to store no then simply iterate from second index to last and if req s[i]=9-s[i]
also check for first letter separately
can’t we some modification in this code also???
@Ashu1318 yes we can but it would become complex and complicated also no can be large so its better to use a string
using string its just 3 to 4 line code
@Ashu1318 for 999 its giving 999 but ans 900
only if first character is 9 then only you dont change it