码迷,mamicode.com
首页 >  
搜索关键字:should    ( 4948个结果
LeetCode Median of Two Sorted Arrays
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
LeetCode Median of Two Sorted Arrays
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
LeetCode Problem 136:Single Number
描述: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
LeetCode Two Sum
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
leetcode之LRU实现
题目: 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
【oracle】oracledba16 The redo log file should belong to an inactive group.
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
Partition List(链表的插入和删除操作,找前驱节点)
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
Lintcode: Implement Queue by Stacks 解题报告
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
LRU Cache -- LeetCode
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
Single Number
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!