码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
【LeetCode题目记录-4】插入数组间隔问题
Insert Interval  Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were initially sorted according to t...
分类:其他好文   时间:2014-09-15 17:51:09    阅读次数:264
Exercise 1.9
题目: Each of the following two procedures defines a method for adding two positive integers in terms of the procedures inc, which increments its argum....
分类:其他好文   时间:2014-09-15 17:19:29    阅读次数:156
Median of Two Sorted Arrays-LeetCode
题目: There are two sorted arrays A and B of size m and n respectively.Find the Median of two sorted arrays.The overall run time complexity should be O(...
分类:其他好文   时间:2014-09-15 14:19:58    阅读次数: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 ...
分类:其他好文   时间:2014-09-15 12:41:48    阅读次数:133
Remove Duplicates from Sorted List
[leetcode]Remove Duplicates from Sorted List...
分类:其他好文   时间:2014-09-15 11:23:08    阅读次数:126
Remove Duplicates from Sorted List II
[leetcode]Remove Duplicates from Sorted List II...
分类:其他好文   时间:2014-09-15 11:22:01    阅读次数:192
[leetcode]Swap Nodes in Pairs @ Python
原题地址:http://oj.leetcode.com/problems/swap-nodes-in-pairs/Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2...
分类:编程语言   时间:2014-09-15 06:38:18    阅读次数:200
HDU-5014-Number Sequence
Problem Description There is a special number sequence which has n+1 integers. For each number in sequence, we have two rules: ● ai ∈ [0,n]  ● ai ≠ aj( i ≠ j ) For sequence a and sequence b,...
分类:其他好文   时间:2014-09-15 01:06:27    阅读次数:175
关于Huffman 算法中一次提取2个最小权重值的操作实现
/* * ===================================================================================== * * Filename: min_two_selector.cpp * * Descriptio...
分类:其他好文   时间:2014-09-15 01:03:38    阅读次数:190
[Leetcode][JAVA] Merge Two Sorted Lists & Sort List
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 fi...
分类:编程语言   时间:2014-09-15 01:02:17    阅读次数:269
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!