Is Array Mirror Inverse

https://hack.codingblocks.com/contests/c/474/204
https://ide.codingblocks.com/#/s/24011

https://ide.codingblocks.com/#/s/24026

Refer to my solution

only 2 test cases could be passed.what is wrong with my code .plz explain.
https://ide.codingblocks.com/#/s/24112

I am not able to get your approach for solving such inverse problems. Check your approach with solution provided by @sss

https://ide.codingblocks.com/#/s/24026

Check out this solution. It is self explanatory.