I think i have applied correct logic but it's coming as Wrong Answer What is wrong with it?

I have Submitted the answer to question Ambiguos Permutation but My solution is wrong.
I want to know what is wrong with my solution.
This is my solution.
https://www.codechef.com/viewsolution/27484902

I didn’t get the question. What is that inverse permutation thing being said? If u can explain then I may look into ur code

You wrote the spelling of “ambiguous” wrong :laughing:

4 Likes

Thank you a typo can mess it all.

2 Likes