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-11-16 17:09:16
阅读次数:
134
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 ...
分类:
其他好文 时间:
2014-11-16 15:52:15
阅读次数:
226
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-11-16 15:52:04
阅读次数:
106
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 ...
分类:
其他好文 时间:
2014-11-16 14:36:42
阅读次数:
140
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 two ...
分类:
其他好文 时间:
2014-11-16 10:43:04
阅读次数:
154
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 numb...
分类:
其他好文 时间:
2014-11-16 07:05:48
阅读次数:
159
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 ...
分类:
其他好文 时间:
2014-11-15 21:41:07
阅读次数:
315
To the MaxTime Limit:1000MSMemory Limit:10000KTotal Submissions:41322Accepted:21917DescriptionGiven a two-dimensional array of positive and negative i...
分类:
其他好文 时间:
2014-11-15 16:56:14
阅读次数:
156
Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinki...
分类:
其他好文 时间:
2014-11-15 09:58:31
阅读次数:
222
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining....
分类:
移动开发 时间:
2014-11-15 07:47:26
阅读次数:
242