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 endpo...
分类:
其他好文 时间:
2015-04-17 18:05:48
阅读次数:
104
标题:Rotate List通过率:21.8%难度:中等Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,ret...
分类:
其他好文 时间:
2015-04-17 13:01:12
阅读次数:
94
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 ...
分类:
其他好文 时间:
2015-04-17 07:06:41
阅读次数:
136
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 ...
分类:
其他好文 时间:
2015-04-16 23:33:54
阅读次数:
119
题目:
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). Find tw...
分类:
其他好文 时间:
2015-04-16 21:59:36
阅读次数:
114
http://acm.hdu.edu.cn/showproblem.php?pid=4747
Problem Description
Mex is a function on a set of integers, which is universally used for impartial game theorem. For a non-negative integer set ...
分类:
其他好文 时间:
2015-04-16 21:52:59
阅读次数:
130
Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes co...
分类:
其他好文 时间:
2015-04-16 19:34:28
阅读次数:
170
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 ...
分类:
其他好文 时间:
2015-04-15 13:39:11
阅读次数:
164
题目: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 sing...
分类:
其他好文 时间:
2015-04-15 12:53:30
阅读次数:
206
题目:
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-04-14 21:34:01
阅读次数:
143