http://ideone.com/iKQhaz why i m getting wrong ans
1 Like
understanding ur code is difficult for me… u can just check the logic and improve ur implementation
Could you please explain your logic? Have you tried few testcases?
my logics is i asked for entering the array which is required to check and then i created my array with given n if both the array are same then it is ambiguous @rahul_nexus