This section of code:
if (indexS2 == -1) {
flag = indexS2;
indexS2 = sizeStr2 - 1;
}
Starting on line 21 in the final example is never executed. Nor is the related on lines 28-31… What is the goal of this code and how could we create a test case to exercise that code?
Course: Grokking Coding Interview Patterns in Java - Learn Interactively
Lesson: Solution: Minimum Window Subsequence - Grokking Coding Interview Patterns in Java