Script to find testcases where your code is failing
This script requires 4 parameters.
-
-g
: Generator code : Code which generates random testcases. -
-c
: Correct code. : Brute force code which will always give correct results but has bad complexity. -
-w
: Wrong code - Code with better complexity but is giving wrong answers. -
-t
: Number of test cases(optional) : Enter how many testcases you want to genrate where your correct code and wrong code gives different results. It is equal to 1 by default.
Output contains 3*n number of files where n is the number of testcases given in fourth parameter. Output file format will be as follows.
input0, input1, input2, ...
correct0, correct1, correct2, ...
wrong0, wrong1, wrong2, ...