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)).
Show Tags...
分类:
其他好文 时间:
2014-12-24 01:16:15
阅读次数:
148
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-12-23 23:49:51
阅读次数:
212
描述:Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime comp...
分类:
其他好文 时间:
2014-12-23 21:07:58
阅读次数:
141
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, whe...
分类:
其他好文 时间:
2014-12-23 01:33:48
阅读次数:
279
题目:
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value (will always be positive) of th...
分类:
其他好文 时间:
2014-12-23 00:22:19
阅读次数:
227
Because of hardware failure, you decided to drop a redo log memb
er from the database.
Which condition should be met to drop a redo log file?
A. The redo log file should belong to an active gro...
分类:
数据库 时间:
2014-12-22 11:09:05
阅读次数:
158
Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi...
分类:
其他好文 时间:
2014-12-21 17:59:12
阅读次数:
150
Implement Queue by Stacks 原题链接 : http://lintcode.com/zh-cn/problem/implement-queue-by-stacks/#As the title described, you should only use two stacks t...
分类:
其他好文 时间:
2014-12-20 16:46:10
阅读次数:
270
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the valu...
分类:
系统相关 时间:
2014-12-20 15:32:13
阅读次数:
217
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without using ext...
分类:
其他好文 时间:
2014-12-19 19:14:19
阅读次数:
141