HI,
in this question since u took the input 32145 it had 5 on 1st place so u placed 1 on 5th place but what if i have different inputs like 7,11,71,34,21,4 it has 4th on 1st place but it doesn’t have 1 so i can’t put 1 on 4th place
Thank you
HI,
in this question since u took the input 32145 it had 5 on 1st place so u placed 1 on 5th place but what if i have different inputs like 7,11,71,34,21,4 it has 4th on 1st place but it doesn’t have 1 so i can’t put 1 on 4th place
Thank you
so the only inputs are between 1-5?
But it says " the value of each digit is from 1 to n and is unique"
@dharamrajroy_275ef8688612039e, it can be 12345678 kind of where each can be inversed not the cases where it cant be inversed
also does it need to be consecutive?
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.