摘要:
This question is the same as "Max Chunks to Make Sorted" except the integers of the given array are not necessarily distinct, the input array could be 阅读全文
posted @ 2018-04-15 19:23
一日一更
阅读(112)
评论(0)
推荐(0)
摘要:
Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction 阅读全文
posted @ 2018-04-15 15:42
一日一更
阅读(133)
评论(0)
推荐(0)
摘要:
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p 阅读全文
posted @ 2018-04-15 15:34
一日一更
阅读(84)
评论(0)
推荐(0)
摘要:
On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Once you pay the cost, you can either climb one or two steps. Y 阅读全文
posted @ 2018-04-15 15:10
一日一更
阅读(89)
评论(0)
推荐(0)
摘要:
Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Input: [1,2,3] Output: 6 Example 2: Inp 阅读全文
posted @ 2018-04-15 14:57
一日一更
阅读(68)
评论(0)
推荐(0)
摘要:
Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not contain duplicate subsets. For ex 阅读全文
posted @ 2018-04-15 14:48
一日一更
阅读(82)
评论(0)
推荐(0)
摘要:
Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. Example 1 Example 2 Note:Your al 阅读全文
posted @ 2018-04-15 14:27
一日一更
阅读(99)
评论(0)
推荐(0)

浙公网安备 33010602011771号