码迷,mamicode.com
首页 >  
搜索关键字:you have two operati    ( 41000个结果
【LeetCode】Best Time to Buy and Sell Stock II
Best Time to Buy and Sell Stock IISay you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the ...
分类:其他好文   时间:2014-06-02 15:01:53    阅读次数:305
hdu 1086 You can Solve a Geometry Problem too (几何)
You can Solve a Geometry Problem tooTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6932Accepted S...
分类:其他好文   时间:2014-06-02 12:40:04    阅读次数:325
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
leetcode Linked List Cycle
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?求链表是否有环的问题,要考虑链表为空的情况,定义一个快指针和一个慢指针,如果快指针和...
分类:其他好文   时间:2014-06-02 08:05:16    阅读次数:255
Leetcode Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?借用博...
分类:其他好文   时间:2014-06-02 07:32:33    阅读次数:291
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
iOS: 布局可视化语法 Visual Format Syntax
可视化语法 Visual Format SyntaxThe following are examples of constraints you can specify using the visual format. Note how the text visually matches the im...
分类:移动开发   时间:2014-06-02 05:37:46    阅读次数:351
【leetcode】 Sudoku Solver
问题: Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character '.'. You may assume that there will be only one unique solution. ...
分类:其他好文   时间:2014-06-02 05:25:23    阅读次数:295
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!