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
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
题目链接: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
题目链接: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
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
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问题: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
题目:
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
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
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