wrong answer

what are the reasons of wrong answer when your code is working fine on your system

Let me tell u if u dont know that when u submit your code its tested on both the tests given below the problem statement but also on secretly kept input files which are a combination of all types of large, tricky and corner cases where ur code might get failed… i hope this wud have cleared ur doubt.

To avoid WA do test ur code on a number of tricky and corner cases or try to match answers with that of a brute force solution for smaller cases

1 Like
//