1 /***************************************************************** 2 created: 2014/09/13 16:16 3 filename: remove-duplicates-from-sorted-arra...
分类:
其他好文 时间:
2014-09-13 22:43:46
阅读次数:
192
http://poj.org/problem?id=1860DescriptionSeveral currency exchange points are working in our city. Let us suppose that each point specializes in two p...
分类:
其他好文 时间:
2014-09-13 20:08:45
阅读次数:
410
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 1 /** 2 ...
分类:
其他好文 时间:
2014-09-13 20:03:15
阅读次数:
228
Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu...
分类:
其他好文 时间:
2014-09-13 20:01:15
阅读次数:
205
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:
其他好文 时间:
2014-09-13 20:01:05
阅读次数:
176
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an...
分类:
其他好文 时间:
2014-09-13 20:00:55
阅读次数:
146
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-09-13 20:00:35
阅读次数:
207
MedianTime Limit:1000MSMemory Limit:65536KTotal Submissions:3866Accepted:1130DescriptionGivenNnumbers,X1,X2, ... ,XN, let us calculate the difference ...
分类:
其他好文 时间:
2014-09-13 10:34:44
阅读次数:
236
Description
Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concatenation as multiplication, exponenti...
分类:
其他好文 时间:
2014-09-13 09:23:34
阅读次数:
197
TWO NODESTime Limit: 24000/12000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1137Accepted Submission(s): 333Problem ...
分类:
其他好文 时间:
2014-09-12 23:27:14
阅读次数:
330