码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
LeetCode 2. Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:其他好文   时间:2016-11-24 09:24:18    阅读次数:149
Leetcode-66 Plus One
#66. Plus One Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most signific ...
分类:其他好文   时间:2016-11-21 18:32:54    阅读次数:139
369. Plus One Linked List
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-11-20 07:00:18    阅读次数:121
LeetCode OJ 61. Rotate List
Given a list, rotate the list to the right by k places, where k is non-negative. For example:Given 1->2->3->4->5->NULL and k = 2,return 4->5->1->2->3- ...
分类:其他好文   时间:2016-11-16 19:43:40    阅读次数:163
Add Two Numbers
题目: Add Two Numbers 题目描述: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of the ...
分类:其他好文   时间:2016-11-15 23:19:42    阅读次数:269
Leetcode problem-204 Count Primes 题解
Leetcode problem-204 Count Primes Count the number of prime numbers less than a non-negative number, n. 题解:这道题如果对每个小于n的数都进行判断是否为素数并计数会超时,因此采用筛法来解这题。建一 ...
分类:其他好文   时间:2016-11-14 15:07:32    阅读次数:102
Nice Sequence_线段树***
Description Let us consider the sequence a1, a2,..., an of non-negative integer numbers. Denote as ci,j the number of occurrences of the number i amon ...
分类:其他好文   时间:2016-11-13 01:29:52    阅读次数:128
LeetCode 258. Add Digits
Problem: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process ...
分类:其他好文   时间:2016-11-10 07:39:17    阅读次数:306
Add Digits, Maximum Depth of BinaryTree, Search for a Range, Single Number,Find the Difference
最近做的题记录下。 258. Add Digits Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num ...
分类:其他好文   时间:2016-11-06 13:54:12    阅读次数:283
LeetCode Q338 Counting Bits(Medium)
原题: 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 a ...
分类:其他好文   时间:2016-11-05 11:27:28    阅读次数:202
2271条   上一页 1 ... 77 78 79 80 81 ... 228 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!