# 题目 There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). # 思路 1. 丢掉一个最小的,...
分类:
编程语言 时间:
2014-11-11 19:26:00
阅读次数:
285
题目描述:
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time
complexity should be O(log (m+n)).
思路:写一个找两个数组中第k大数的函数,...
分类:
其他好文 时间:
2014-11-11 12:45:34
阅读次数:
205
#enconding:utf-8
require 'selenium-webdriver'
require 'rspec'
describe "baidu main page" do
it "should have 百度一下 button on the baidu main page"do
dr = Selenium::WebDriver.for:ie
url = 'www.baid...
分类:
其他好文 时间:
2014-11-10 23:21:48
阅读次数:
1334
常用英语词汇1. spiral order 螺旋形顺序Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should...
分类:
其他好文 时间:
2014-11-10 21:33:26
阅读次数:
217
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ...
分类:
其他好文 时间:
2014-11-10 17:15:00
阅读次数:
173
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.
...
分类:
其他好文 时间:
2014-11-10 13:55:03
阅读次数:
195
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.这道混合插入有序链...
分类:
其他好文 时间:
2014-11-10 06:27:42
阅读次数:
191
解决参考http://www.rafalinux.com/La búsqueda fue bastante infructuosa, y hasta hace un par de días, nadie respondió a un llamamiento en losforos de Ellisl...
分类:
Web程序 时间:
2014-11-09 20:47:05
阅读次数:
274
我也是从网上看到的这种解决办法。
遇到这种情况后,通过dmesg看一下内核日志。
如果发现有如下日志,那就好办了。
hello: version magic '2.6.33.3 ' should be '2.6.33.3-85.fc13.i686.PAE SMP mod_unload 686 '
修改内核源码文件include/linux/vermagic.h
把如下VERMAGIC...
分类:
其他好文 时间:
2014-11-09 16:40:55
阅读次数:
113
归并两个有序序列为一个有序序列Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the n...
分类:
其他好文 时间:
2014-11-09 16:34:47
阅读次数:
182