You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you should choose o ...
分类:
其他好文 时间:
2018-09-29 14:27:08
阅读次数:
469
204. Count Primes 204. Count Primes 204. Count Primes 204. Count Primes Count the number of prime numbers less than a non-negative number, n. Example: ...
分类:
其他好文 时间:
2018-09-26 00:12:10
阅读次数:
158
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai ...
分类:
其他好文 时间:
2018-09-25 16:11:22
阅读次数:
163
Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n. Example: Input: 2 Output: 91 Explanation: The answer shoul ...
分类:
其他好文 时间:
2018-09-25 01:31:19
阅读次数:
174
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai ...
分类:
其他好文 时间:
2018-09-22 10:32:40
阅读次数:
133
题目: Given an array, rotate the array to the right by k steps, where k is non-negative. 给定一个数组,将数组向右旋转k步,其中k为非负数。 Example 1: Example 2: Note: Try to co ...
分类:
其他好文 时间:
2018-09-21 10:58:33
阅读次数:
158
Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Example 2: 与189. Rotate Array 类似,但链表不能通过index来访问,要一 ...
分类:
其他好文 时间:
2018-09-21 10:56:37
阅读次数:
161
84. Largest Rectangle in Histogram https://www.youtube.com/watch?v=KkJrGxuQtYo&t=129s Given n non-negative integers representing the histogram's bar h... ...
分类:
其他好文 时间:
2018-09-20 18:49:24
阅读次数:
134
The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total num ...
分类:
其他好文 时间:
2018-09-20 11:08:46
阅读次数:
177
55. 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 represe ...
分类:
其他好文 时间:
2018-09-19 21:42:23
阅读次数:
152