What to do when one gets wrong answer for a hard problem for a long period of time?

Revision en1, by SA01Fan, 2021-03-28 18:21:18

Guys, recently when I was trying to solve some problems that were slightly difficult for me , I was getting wrong answers on test (20 and above) and those test cases are so large that codeforces system does not reveal them completely. Even though the editorial was also similar to my idea. In this case what should I do to understand my mistake? Please suggest some efficient way to debug. How to generate small test cases that are able to break my code?

Tags debugging

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English SA01Fan 2021-03-28 18:21:18 537 Initial revision (published)