# LeetCode 74. Search a 2D Matrix

Description https://leetcode.com/problems/search-a-2d-matrix/ Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following…

Be a Good Techer and Tech for Good. www.goodtecher.com

Description https://leetcode.com/problems/search-a-2d-matrix/ Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following…

Description https://leetcode.com/problems/guess-number-higher-or-lower/ We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have…

Description https://leetcode.com/problems/binary-search/ Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums.…

Description https://leetcode.com/problems/arranging-coins/ You have a total of n coins that you want to form in a staircase shape, where every k-th row must…

Description https://leetcode.com/problems/split-array-largest-sum/ Given an array nums which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays.…

Description https://leetcode.com/problems/count-of-smaller-numbers-after-self/ You are given an integer array nums and you have to return a new counts array. The counts array has the property where counts[i] is the…

Description https://leetcode.com/problems/peak-index-in-a-mountain-array/ Let’s call an array arr a mountain if the following properties hold: arr.length >= 3 There exists some i with 0 < i < arr.length -…

Description https://leetcode.com/problems/search-a-2d-matrix-ii/ Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers…

Description https://leetcode.com/problems/find-peak-element/ A peak element is an element that is strictly greater than its neighbors. Given an integer array nums, find…

Description https://leetcode.com/problems/search-in-rotated-sorted-array/ Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).…