I was stuck at the points problem (link given)
My solution link is
I have tried all possible test-cases and the program works correctly. Please tell me where I am going wrong. Also it would be very helpful if you could just post one or two test cases where my code fails and I would try to figure out on my own what went wrong.
Thanks a lot