https://leetcode.com/problems/search-a-2d-matrix-ii


Runtime: 20 ms, faster than 95.68% of Go online submissions for Search a 2D Matrix II.
Memory Usage: 6.9 MB, less than 55.14% of Go online submissions for Search a 2D Matrix II.


```go
func searchMatrix(matrix [][]int, target int) bool {
    //8:18
    for _, row := range matrix {
        for _, value := range row {
            if (target == value) {
                return true
            }
        }
    }
    return false
    //8:19
}
```