码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
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....
分类:其他好文   时间:2015-03-19 10:21:00    阅读次数:170
leetcode题解||Container With Most Water问题
problem: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0)...
分类:其他好文   时间:2015-03-18 15:53:14    阅读次数:110
LeetCode --- 64. Minimum Path Sum
题目链接: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 ei...
分类:其他好文   时间:2015-03-15 23:44:17    阅读次数:329
LeetCode --- 61. Rotate 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. 这道题的要求是向右旋转链表...
分类:其他好文   时间:2015-03-15 23:43:32    阅读次数:353
leetcode 61. 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.[Solu...
分类:其他好文   时间:2015-03-15 18:21:30    阅读次数:114
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 digit. Add the two numbers and return it as a link...
分类:其他好文   时间:2015-03-15 07:06:35    阅读次数:100
Jump Game
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...
分类:其他好文   时间:2015-03-14 15:12:44    阅读次数:119
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 the head of the list.题目意思是说给定一个数这个数以数组的形式表示,就...
分类:其他好文   时间:2015-03-14 12:27:07    阅读次数:128
A1005. Spell It Right (20)
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.Input Specificati...
分类:其他好文   时间:2015-03-14 09:36:09    阅读次数:133
LeetCode-45 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 maximu...
分类:其他好文   时间:2015-03-13 22:13:50    阅读次数:131
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!