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