Here's a thought exercise.
Perhaps we can try to simplify-- what if we just kept track of one index?
Then, what if we used multiple trackers? Would it be beneficial to know about multiple positions at once, in the context of this problem?
Here's a thought exercise.
Perhaps we can try to simplify-- what if we just kept track of one index?
Then, what if we used multiple trackers? Would it be beneficial to know about multiple positions at once, in the context of this problem?