码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
Remove Duplicates from Sorted List II [详细分析]
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example, Given 1->2->3->3->4->4->5, return 1->2->5. Given 1->1-...
分类:其他好文   时间:2014-06-22 22:57:49    阅读次数:347
leetcode——Search for a Range 排序数组中寻找目标下标范围(AC)
Given a sorted array of integers, find the starting and ending position of a given target value. Your algorithm's runtime complexity must be in the order of O(log n). If the target is not found ...
分类:其他好文   时间:2014-06-22 21:47:15    阅读次数:269
【DataStructure】Some useful methods for arrays
Last night it took me about two hours to learn arrays. For the sake of less time, I did not put emphaises on the practice question, just now when reading the book, I found that some methods referred...
分类:其他好文   时间:2014-06-22 17:14:10    阅读次数:152
POJ-1068 Parencodings
Description Let S = s1 s2...s2n be a well-formed string of parentheses. S can be encoded in two different ways:  q By an integer sequence P = p1 p2...pn where pi is the number of left parentheses...
分类:其他好文   时间:2014-06-22 14:06:49    阅读次数:249
LeetCode——Add Binary
Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". 求数字字符串的二进制和。同之前的数组代表数字,两个数组相加一样,只不过进位变成了2.可能两个串的长度不一样,故逆转,从左到右加下去,最后再逆转。 publi...
分类:其他好文   时间:2014-06-21 20:11:21    阅读次数:344
RabbitMQ in Action(5): Clustering and dealing with failure
Batteries included: RabbitMQ clustering The clustering built in to RabbitMQ was designed with two goals in mind: allowing consumers and producers to k...
分类:其他好文   时间:2014-06-21 16:31:16    阅读次数:276
Leetcode: Divide Two Integers
Divide two integers without using multiplication, division and mod operator.Analysis: 我自己用binary search做老是出TLE的错误,看了网上思路,有了如下方法:long did = dividend, l...
分类:其他好文   时间:2014-06-21 16:06:48    阅读次数:144
[转]SSL on Open vSwitch and ovs controller
There are two places that SSL will need to be configured if SSL is to be used between the controller and the Open vSwtich. The instructions below assu...
分类:其他好文   时间:2014-06-21 15:30:08    阅读次数:161
[转] An Introduction to Mutual SSL Authentication
1. Introduction Mutual SSL authentication or certificate based mutual authentication refers to two parties authenticating each other through verifying...
分类:其他好文   时间:2014-06-21 14:38:35    阅读次数:436
RabbitMQ in Action (1): Understanding messaging
1. Consumers and producers Producers create messages and publish (send) them to a broker server (RabbitMQ). A message has two parts: a payload and a l...
分类:其他好文   时间:2014-06-21 14:33:14    阅读次数:431
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!