码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
leetcode 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 significant digit is at...
分类:其他好文   时间:2014-11-04 14:28:59    阅读次数:179
LeetCode 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 represents your maximu...
分类:其他好文   时间:2014-11-04 14:28:24    阅读次数:204
LeetCode:GrayCode
题目描述: 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 number of bits in the code, print the s...
分类:其他好文   时间:2014-11-04 11:09:10    阅读次数:135
LeetCode[Linked list]: 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->NULL. 看到这个题目感到奇怪的是为什么是“右旋”,而不是“左旋...
分类:其他好文   时间:2014-11-02 13:54:27    阅读次数:225
A - Robot Bicorn Attack
DescriptionVasya plays Robot Bicorn Attack.The game consists of three rounds. For each one a non-negative integer amount of points is given. The resul...
分类:其他好文   时间:2014-11-01 13:24:08    阅读次数:157
LeetCode[Array]: 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 significant digit is at the head of the list. 一开始我误解了题目的意思,以为是新建一个...
分类:其他好文   时间:2014-10-31 22:16:05    阅读次数:253
POJ2891——Strange Way to Express Integers(模线性方程组)
Strange Way to Express IntegersDescriptionElina is reading a book written by Rujia Liu, which introduces a strange way to express non-negative integer...
分类:其他好文   时间:2014-10-30 20:47:17    阅读次数:242
leetcode Jump Game II
题目:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your max...
分类:其他好文   时间:2014-10-30 01:37:50    阅读次数:247
第22题 Rotate List
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.Solut...
分类:其他好文   时间:2014-10-29 21:01:17    阅读次数:139
[LeetCode] Rotate List
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.思路一:首...
分类:其他好文   时间:2014-10-29 18:45:47    阅读次数:139
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!