Advice for identifying edge test cases

by robinzclark   Last Updated April 15, 2019 21:05 PM

I am struggling with the lessons on codility because I can get the sample test cases correct easily. But when I submit the solution and the extreme edge cases are tested, my solution fails.

As an example, I was working on a problem where the input was a String that could be up to 1,000,000 characters in length and consisted of only '0' and '1'. Without going into the details of the actual problem, let me present my obstacle. I could come up with a method for generating a super long String easily. But what I could not understand was how I could determine what the expected, correct answer should be?

What books, blog posts, youtube videos, udemy courses, etc can you recommend to help me to: a) identify all edge cases b) understand how to determine accuracy of expected results

Thank you.



Related Questions


Updated September 07, 2016 09:02 AM

Updated February 02, 2018 20:05 PM

Updated February 18, 2019 08:05 AM

Updated November 26, 2018 22:05 PM

Updated March 03, 2018 10:05 AM