Categorise checks for Two Pointers: Pair, Triplet and Water Problems.
Practice this question from Quiz: Two Pointers: Pair, Triplet and Water Problems, with options and an explanation.
Question
Categorise checks for Two Pointers: Pair, Triplet and Water Problems.
Option A
State/invariant
Option B
Complexity
Option C
Only sample case
Explanation
Strong answers explain state, complexity, and more than the sample.