码迷,mamicode.com
首页 >  
搜索关键字:median of two sor    ( 12209个结果
zoj 3791 An Easy Game dp
An Easy GameTime Limit: 2 Seconds Memory Limit: 65536 KBOne day, Edward and Flandre play a game. Flandre will show two 01-strings s1 and s2, the leng....
分类:其他好文   时间:2014-06-06 23:24:46    阅读次数:248
【Leetcode】Divide Two Integers
Divide two integers without using multiplication, division and mod operator. 1 class Solution { 2 public: 3 int divide(int dividend, int divisor) ...
分类:其他好文   时间:2014-06-06 17:40:07    阅读次数:193
HTMLParser in python
You can know form the name that the HTMLParser is something used to parse HTML files. In python, there are two HTMLParsers. One is the HTMLParser clas...
分类:编程语言   时间:2014-06-05 12:46:16    阅读次数:1294
指针和数组及内存管理
1. 指针和地址TCPL 中给指针的定义是: A pointer is a group of cells (often two or four) that can hold an address .int value = 10;int *pvalue = &value;上面这个语句的内存模型是:注意...
分类:其他好文   时间:2014-06-02 18:07:49    阅读次数:315
LeetCode: Same Tree [100]
【题目】 Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. 【题意】 判断了两个二叉树是否相等 【思路】 递归...
分类:其他好文   时间:2014-06-02 11:03:03    阅读次数:205
LeetCode: Recover Binary Search Tree [099]
【题目】 Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note: A solution using O(n) space is pretty straight forward. Could you devise a constant space solution? confused what "{1,#,2,3}" ...
分类:其他好文   时间:2014-06-02 10:38:17    阅读次数:246
Find them, Catch them
DescriptionThe police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang Dragon and Ga...
分类:其他好文   时间:2014-06-02 09:38:19    阅读次数:219
POJ1068——Parencodings
ParencodingsDescriptionLet 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 ...
分类:其他好文   时间:2014-06-02 06:19:50    阅读次数:185
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-02 06:11:46    阅读次数:392
【leetcode】N-queens
问题: The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all distinct solutions to the n-queens...
分类:其他好文   时间:2014-06-01 18:08:28    阅读次数:334
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!