Leetcode 240. Search a 2D Matrix II

Input: matrix = [[1,4,7,11,15],[2,5,8,12,19],[3,6,9,16,22],[10,13,14,17,24],[18,21,23,26,30]], target = 5
Output: true
Input: matrix = [[1,4,7,11,15],[2,5,8,12,19],[3,6,9,16,22],[10,13,14,17,24],[18,21,23,26,30]], target = 20
Output: false

--

--

--

CS new grad, 6 years experience related to supply chain management. Located in Bay area

Love podcasts or audiobooks? Learn on the go with our new app.

Spawning Objects in Unity Without the Clutter

Headless (commerce) experience management — part 2

What are 4 Reasons to Choose Matlab for programming?

Nrwl Turns Three!

DI for AWS Java Lambda

How To Get Job At FAANG

The Facebook and Twitter Scraping Guide

DevOps to win — Management for Engineers Series

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gary Chiang

Gary Chiang

CS new grad, 6 years experience related to supply chain management. Located in Bay area

More from Medium

Hubspot SWE Co-op Interview Experience and How to Ace it

2125. Number of Laser Beams in a Bank

Leetcode: 84. Largest Rectangle in Histogram

Substring with Concatenation of All Words — LeetCode