diff --git a/Readme.md b/Readme.md index a71d471..35243e1 100644 --- a/Readme.md +++ b/Readme.md @@ -8,20 +8,30 @@ For optimization problems sometimes your optimized code tends to fail on corner To overcome such annoying issues of brainstorming the aforementioned corner cases yourself, the naive idea of stress testing comes into play. -For the very same problem, you quickly code out a brute solution and hopefully with the help of my script :ok_man: and a random case generator (User parameter) and *voilĂ *, you get the test case your code was failing on! +For the very same problem, you quickly code out a brute solution and hopefully with the help of my script :ok_man: and a random case generator (User parameter), you compare your output against the brute output (User parameter) and hope for a **fail verdict** and *voilĂ *, you get the test case your code was failing on! #### Please refer *stressCheck.py* for modelling required user parameters! Currently configured for [Combination lock - Google kickstart round G](https://codingcompetitions.withgoogle.com/kickstart/round/00000000001a0069/0000000000414a24) +## Preview + +![OK verdicts](img/1.png) + +![Fail verdicts](img/2.png) + +## How to use +* Code an optimized solution for the problem. *In my repo, it's "T.cpp"* +* Code a brute solution for the problem. *In my repo, it's "brute.cpp"* +* Ensure both your brute & optimized programs recieve input from a file. *In my repo, it's "inputf.in"* +* Update *gen* function in *stressCheck.py* in order to randomly generate your test cases. +* Update *checker* function in *stressCheck.py* in order to form basis of comparison for your response and brute response. *In my repo, it's string comparison* +* Wait to hopefully retrieve a corner case, lol. + ``` Currently supported on Linux/Mac ``` -## Preview - -[OK verdicts] - #### All contributions are welcomed! :hand: