Page 1 of 1

brianfry713 -> how are you so good at test cases?

Posted: Fri Sep 12, 2014 10:15 pm
by mgavin2
I'm wondering how you've developed the strategy to determine critical test cases so that I may share the knowledge with others.

Thanks in advance!

Re: brianfry713 -> how are you so good at test cases?

Posted: Sat Sep 13, 2014 6:34 pm
by brianfry713
I often write test case generators using rand().

Re: brianfry713 -> how are you so good at test cases?

Posted: Sat Sep 13, 2014 9:30 pm
by mgavin2
that's so smart... why was I trying to rely on human ingenuity :(

would you do this during an actual contest? to make it feasible for that enviroment

Re: brianfry713 -> how are you so good at test cases?

Posted: Mon Sep 15, 2014 7:28 pm
by brianfry713
I don't know if I understand your question.

If I'm participating in a contest, I'll usually just write the code to solve the problem. The only time I might write a test case generator is if I'm able to write a brute force TLE solution and I want to compare my WA code against it for small inputs.

I often write test case generators to help other people find test cases their code is failing on and compare their output to my AC code.

I sometimes create input for this online judge, and I might use a random test case generator for that.