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

Post about everything you want - even if it is not related to programming or this site.

Moderator: Board moderators

Post Reply
mgavin2
New poster
Posts: 43
Joined: Sat Jul 28, 2012 6:29 pm

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

Post by mgavin2 » Fri Sep 12, 2014 10:15 pm

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!
all that matters is AC

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

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

Post by brianfry713 » Sat Sep 13, 2014 6:34 pm

I often write test case generators using rand().
Check input and AC output for thousands of problems on uDebug!

mgavin2
New poster
Posts: 43
Joined: Sat Jul 28, 2012 6:29 pm

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

Post by mgavin2 » Sat Sep 13, 2014 9:30 pm

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
all that matters is AC

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

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

Post by brianfry713 » Mon Sep 15, 2014 7:28 pm

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.
Check input and AC output for thousands of problems on uDebug!

Post Reply

Return to “Off topic (General chit-chat)”