题目:Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or e....
分类:
编程语言 时间:
2014-07-28 14:47:23
阅读次数:
1108
题目:Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last w....
分类:
编程语言 时间:
2014-07-28 11:35:00
阅读次数:
250
原题http://acm.timus.ru/problem.aspx?space=1&num=1804
D - The Machinegunners in a Playoff
Time Limit:500MS Memory Limit:65536KB 64bit IO Format:%I64d
& %I64u
Submit Status
Desc...
分类:
其他好文 时间:
2014-07-28 00:29:30
阅读次数:
242
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. Y...
分类:
其他好文 时间:
2014-07-28 00:28:19
阅读次数:
273
Deferred lighting separate lighting rendering and make lighting a completely image-space technique. This is very different the forward rendering. At f...
分类:
其他好文 时间:
2014-07-27 21:43:45
阅读次数:
1430
题目:Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space....
分类:
编程语言 时间:
2014-07-27 21:26:35
阅读次数:
267
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra space...
分类:
其他好文 时间:
2014-07-26 14:29:30
阅读次数:
183
题目:Sort a linked list in O(n log n) time using constant space complexity.题解:考虑到要求用O(nlogn)的时间复杂度和constant space complexity来sort list,自然而然想到了merge sor....
分类:
编程语言 时间:
2014-07-26 09:51:57
阅读次数:
307
常用字符实体 注意:实体名称是区分大小写的! 结果描述实体名实体编号non-breaking space greater than>>&ersand&&¢cent¢¢£pound££¥yen¥¥...
分类:
Web程序 时间:
2014-07-26 00:36:56
阅读次数:
276
Eclipse崩溃,错误提示:MyEclipse has detected that less than 5% of the 64MB of PermGen (Non-heap memory) space remains. It is strongly recommendedthat you exi...
分类:
编程语言 时间:
2014-07-26 00:18:46
阅读次数:
241