LeetCode 410. Split Array Largest Sum
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.…
Be a Good Techer and Tech for Good. www.goodtecher.com
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 A a mountain if the following properties hold: A.length >= 3 There exists some 0 < i < A.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 greater than its neighbors. Given an input array nums, where nums[i] ≠…
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]).…
Description You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version…
Description Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non-negative integer. Since the…
Description Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. Your algorithm’s…
Description https://leetcode.com/problems/search-insert-position/description/ Given a sorted array and a target value, return the index if the target is found. If not,…