描述: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
Swap Nodes in PairsGiven a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2-...
分类:
其他好文 时间:
2014-12-19 17:05:17
阅读次数:
192
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without usi...
分类:
其他好文 时间:
2014-12-17 22:45:19
阅读次数:
215