码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
leetcode Remove Duplicates from Sorted Array II
1 /***************************************************************** 2 created: 2014/09/13 16:16 3 filename: remove-duplicates-from-sorted-arra...
分类:其他好文   时间:2014-09-13 22:43:46    阅读次数:192
POJ1860:Currency Exchange(BF)
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 Lists
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
Remove Duplicates from Sorted List
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
Search Insert Position
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
Same Tree
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
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 ...
分类:其他好文   时间:2014-09-13 20:00:35    阅读次数:207
poj3579 median 二分搜索 中位数
MedianTime Limit:1000MSMemory Limit:65536KTotal Submissions:3866Accepted:1130DescriptionGivenNnumbers,X1,X2, ... ,XN, let us calculate the difference ...
分类:其他好文   时间:2014-09-13 10:34:44    阅读次数:236
POJ - 2406 Power Strings (KMP循环节)
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
HDU 4587 无向图的割点
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!