Live Batches
Masterclasses
Menu
Free Courses
Account
Login / Sign Up
Problem Submissions Solution

Search in A Sorted 2D Matrix II

Difficulty: Medium

Acceptance: 70.00%

Points: 30.00

You are given an m × n integer matrix matrix where each row is sorted in ascending order from left to right, and each column is sorted in ascending order from top to bottom. Given an integer target, return true if the target exists in the matrix, otherwise return false.

Topics

Companies

Articles

Examples:

N/A

Constraints:
  • 1 = m, n = 300
  • -10? = matrix[i][j], target = 10?
Companies:
Microsoft Apple
Topics:
Binary Search
Locked Content
Access Restricted: Please Login to access the code editor and test cases.