码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
[译文]casperjs使用说明-选择器
casperjs的选择器可以在dom下工作,他既支持css也支持xpath.下面所有的例子都基于这段html代码: My page Hello one two three ©2012 myselfCSS3默认情况下,...
分类:Web程序   时间:2014-07-03 09:10:37    阅读次数:235
[leetcode] Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array.
分类:其他好文   时间:2014-07-02 21:07:20    阅读次数:149
Leetcode Merge k Sorted Lists
Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.合并k个排序列表解题思路是:取出 k个元素进行堆排序,每次取出最小的元素,插入链表中即可注意本题利用了c++...
分类:其他好文   时间:2014-07-02 20:16:54    阅读次数:273
[leetcode] Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit.
分类:其他好文   时间:2014-07-02 14:47:43    阅读次数:253
[leetcode] Scramble String
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.
分类:其他好文   时间:2014-07-02 10:03:09    阅读次数:175
python的sorted排序详解
排序,在编程中经常遇到的算法,我也在几篇文章中介绍了一些关于排序的算法。有的高级语言内置了一些排序函数。本文讲述Python在这方面的工作。供使用python的程序员们参考,也让没有使用python的朋友了解python。领略一番“生命有限,请用Python”的含义。 内置函数sorted()/list.sort()的使用 简单应用 python对list有一个内置函数:...
分类:编程语言   时间:2014-07-02 09:41:58    阅读次数:224
【OC语法快览】二、存取方法
Accessors 存取方法 All instance variables are private in Objective-C by default, so you should use accessors to get and set values in most cases. There are two syntaxes. This is the traditional 1.x syntax: OC中所有的实例变量默认是私有的,所以多数情况下你应该使用访问器来获得和设置实例变量的值。访问器有...
分类:其他好文   时间:2014-07-02 08:39:04    阅读次数:231
计算几何-hdoj-1221-Rectangle and Circle
Rectangle and Circle   Problem Description Given a rectangle and a circle in the coordinate system(two edges of the rectangle are parallel with the X-axis, and the other two are parallel with the Y...
分类:其他好文   时间:2014-07-02 07:29:06    阅读次数:268
Leetcode: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. 代码如下: * Definition for singly-linked list. * struct L...
分类:其他好文   时间:2014-07-02 07:23:59    阅读次数:159
UVA 12714 Two Points Revisited(简单数学题)
UVA 12714 Two Points Revisited(简单数学题)...
分类:其他好文   时间:2014-07-02 06:54:53    阅读次数:154
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!