码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
[LeetCode] 494. Target Sum 目标和
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
[LeetCode] 204. Count Primes
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
2. Add Two Numbers
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
[LeetCode] 357. Count Numbers with Unique Digits
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
【leetcode】2. Add Two Numbers
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
184.Rotate Array
题目: 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
[LeetCode] 61. Rotate List 旋转链表
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
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
[LeetCode] 89. Gray Code 格雷码
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
[leetcode][55] Jump Game
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
2271条   上一页 1 ... 27 28 29 30 31 ... 228 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!