how we are getting output 4444 from input 4545 when inverting a digit x means 9-x.
so when we invert the digit one by one we should get 5454 because (9-4),(9-5),(9-4),(9-5)=5454.
Not able to understand what is question asking for
hi @ubaidshaikh9999
you only have to invert some digits to minimize the result not every digit.
so for input
4 5 4 5
output will be
4 (9-5) 4 (9-5)
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.