ques- https://hack.codingblocks.com/contests/c/509/204
code- https://ide.codingblocks.com/#/s/29191
it is giving 2 wrong cases…pls help
ques- https://hack.codingblocks.com/contests/c/509/204
code- https://ide.codingblocks.com/#/s/29191
Your logic is wrong.
You have to check mirror inverse, not sum.
You are not checking it properly.
Please try again read question carefully.
bhaiya forget sum ,sum is the new art formed
sum is the new array formed
5
0 1 2 3 4
Expected: true
Output: false.