Solution: Sparse Search
In this review lesson, we give a detailed analysis of the solutions for solving the sparse search problem.
We'll cover the following...
We'll cover the following...
Solution #1: Brute force
In this solution, we traverse the entire array of strings and stop only if we find the target string or reach the end of the array.
Time complexity
The time complexity is the time it takes to traverse the entire array, i.e., ...