Grokking the Engineering Manager Coding Interview
0% completed
Introduction to Two Pointers Pattern
In problems where we deal with sorted arrays (or linked-lists) and need to find a set of elements that fulfill certain constraints, the Two Pointers approach becomes quite useful. The set of elements could be a pair, a triplet or even a subarray. For example, take a look at the following problem:
Given an array of sorted numbers and a target sum, find a pair in the array whose sum is equal to the given target.
.....
.....
.....
Like the course? Get enrolled and start learning!
A
Anonymous
· 4 years ago
Hello, Are there any patterns for solving String related questions?
Show 2 replies
A
Anonymous
· 4 years ago
hi
Show 1 reply
Reading Progress
0%