Problem: https://leetcode.com/problems/jump-game/ Given an array of non-negative integers, you are initially positioned at the first index of the arra ...
分类:
其他好文 时间:
2016-07-05 20:50:02
阅读次数:
203
Jump Game | Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represent ...
分类:
其他好文 时间:
2016-07-05 06:24:18
阅读次数:
174
转载请注明出处:http://blog.csdn.net/crazy1235/article/details/51541984Subject
出处:https://leetcode.com/problems/container-with-most-water/ Given n non-negative integers a1, a2, …, an, where each represents...
分类:
其他好文 时间:
2016-07-04 15:41:56
阅读次数:
179
LeetCode 第 204 题 (Count Primes)
Description:
Count the number of prime numbers less than a non-negative number, n.
计算小于 N 的素数的个数。这道题目比较简单。但是想提高计算效率与需要费点脑筋。判断一个数字 nn 是不是素数的简单方法是 用 nn 去除 2,3,4,…,n?1...
分类:
其他好文 时间:
2016-07-03 19:45:17
阅读次数:
212
Given a list, rotate the list to the right by k places, where k is non-negative. Given a list, rotate the list to the right by k places, where k is no ...
分类:
其他好文 时间:
2016-07-03 07:00:45
阅读次数:
161
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r ...
分类:
其他好文 时间:
2016-06-30 14:28:35
阅读次数:
146
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist ...
分类:
其他好文 时间:
2016-06-30 14:10:11
阅读次数:
225
https://leetcode.com/problems/data-stream-as-disjoint-intervals/ Given a data stream input of non-negative integers a1, a2, ..., an, ..., summarize th ...
分类:
其他好文 时间:
2016-06-29 22:18:45
阅读次数:
181
Given a non-negative number represented as a singly linked list of digits, plus one to the number. The digits are stored such that the most significan ...
分类:
其他好文 时间:
2016-06-29 13:05:58
阅读次数:
148
题目链接:https://leetcode.com/problems/count-numbers-with-unique-digits/题目:
Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n.Example:
Given n = 2, return 91. (Th...
分类:
其他好文 时间:
2016-06-29 11:14:05
阅读次数:
157