Question, how do you go about making test cases in problems like that, where the inputs are not just numbers you can make methodically easily (or easy enough ), but patterns like that?
Is there a methodical way to generate test cases for stuff like that?