码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
LeetCode题解 || Add Two Numbers 问题
problem: 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 digit. Add the two numbers and return it...
分类:其他好文   时间:2015-01-13 17:45:37    阅读次数:136
LeetCode--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 number of bits in the code, print the sequence of ...
分类:其他好文   时间:2015-01-13 17:45:19    阅读次数:140
[LeetCode] Largest Number
Given a list of non negative integers, arrange them such that they form the largest number.For example, given[3, 30, 34, 5, 9], the largest formed num...
分类:其他好文   时间:2015-01-13 17:36:57    阅读次数:97
【LeetCode】Largest Number 解题报告
【题目】 Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330. Note: The result...
分类:其他好文   时间:2015-01-13 16:04:41    阅读次数:147
HappyLeetcode44: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 a...
分类:移动开发   时间:2015-01-13 10:20:37    阅读次数:218
[leetcode解题记录]Jump Game和Jump Game II
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.....
分类:其他好文   时间:2015-01-12 22:23:46    阅读次数:183
LeetCode--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. /**  * Definition for singly-lin...
分类:其他好文   时间:2015-01-12 16:45:05    阅读次数:151
LeetCode--Minimum Path Sum
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. Note: You can only move either down or right at...
分类:其他好文   时间:2015-01-12 16:31:05    阅读次数:180
[C++]LeetCode: 86 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 number of bits in the code, print the seque...
分类:编程语言   时间:2015-01-11 12:27:43    阅读次数:282
LintCode-Minimum Path Sum
Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path. ...
分类:其他好文   时间:2015-01-09 09:10:42    阅读次数:176
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!