Angad Sandhu
Search
Browse

74_Search_a_2D_Matrix

Source name
74_Search_a_2D_Matrix.py
### File: Leetcode/Solutions/74_Search_a_2D_Matrix.py

"""
Problem Number: 74
Problem Name: Search a 2D Matrix
Difficulty: Medium
Tags: Array, Binary Search, Matrix, Neetcode 150
Company (Frequency): Amazon, Apple, Facebook, Google, Microsoft
Leetcode Link: https://leetcode.com/problems/search-a-2d-matrix/description/

DESCRIPTION

You are given an m x n integer matrix `matrix` with the following two properties:

- Each row is sorted in non-decreasing order.
- The first integer of each row is greater than the last integer of the previous row.

Given an integer `target`, return `true` if `target` is in `matrix` or `false` otherwise.
"""

Browse the library