Hi everyone could someone give me some tips to how to know the test cases that may make my code give me wrong answers and how can I test my code and guess the main test cases in the problem and if my code give me wrong answer how can I guess the test case that is wrong because I struggle too much when I get Wrong answer ?? and Thanks in advance>
Auto comment: topic has been updated by shadow_33 (previous revision, new revision, compare).
Auto comment: topic has been updated by shadow_33 (previous revision, new revision, compare).
Here is what I usually do.
wtf we basically said the same thing. does this mean I will get red one day?
Your coincidence is only once so the chance of you reaching red $$$ = \frac{1}{\text{number of your comments on cf}}$$$ which I think is pretty low.
oops idk why it is not displaying but just imagine the image of sad chud with "its over" text above
Usually, the brute force solutions to these problems are easy to write if you know recursive backtracking, so just write a brute force solution and generate a bunch of random testcases and find one that makes your original code produce a different answer.