Solution: Search in a 2D List
This review lesson gives a detailed analysis of how to search a number in a 2D List.
We'll cover the following...
We'll cover the following...
Solution #1: brute force
Explanation
Here, we performed a simple linear search in the entire 2D list using two for loops.
Time complexity
Since we use two nested for loops, the time complexity is ...