码迷,mamicode.com
首页 >  
搜索关键字:you are the one    ( 52546个结果
Depth-first Search(DFS)
There are generally two methods to write DFS algorithm, one is using recursion, another one is using stack. (reference from Wiki Pedia)Pseudocode for ...
分类:其他好文   时间:2014-06-13 08:39:34    阅读次数:218
hust 1511 Dominos 2
题目描述Dominos are lots of fun. Children like to stand the tiles on their side in long lines. When one domino falls, it knocks down the next one, which k...
分类:其他好文   时间:2014-06-13 08:09:51    阅读次数:318
WCF之消息模式
请求/响应:所有操作的默认行为,在WSDL中表现为Input/Output元素.One_Way.在WSDL中只有Input,没有回应(Output),所以没有异常报告。单向操作只会在发出调用的瞬间阻塞客户端,但是如果发出了多个单向调用,WCF会把这些调用放入队列,由于队列是有限容量的,过多数量的调用...
分类:其他好文   时间:2014-06-13 06:22:06    阅读次数:395
LeetCode: Count and Say 题解
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw...
分类:其他好文   时间:2014-06-13 00:54:33    阅读次数:376
The List Of Things That Are Mailed In One Form Of Bag
Leather Mulberry spent so many years. Many Mulberry handbags factory in southwest England. All bags are made from the original pattern. They are not o...
分类:其他好文   时间:2014-06-12 21:28:07    阅读次数:328
[Leetcode] Best Time to Buy and Sell Stock III
Question:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may c...
分类:其他好文   时间:2014-06-12 19:55:05    阅读次数:292
LeetCode——Remove Element
Given an array and a value, remove all instances of that value in place and return the new length. The order of elements can be changed. It doesn't matter what you leave beyond the new length. 中...
分类:其他好文   时间:2014-06-10 18:41:04    阅读次数:191
Careercup | Chapter 3
3.1Describe how you could use a single array to implement three stacks.Flexible Divisions的方案,当某个栈满了之后,需要把相邻的栈调整好,这是一个递归的过程。每个stack有一些属性,所以不妨将每个stack封闭...
分类:其他好文   时间:2014-06-10 16:27:38    阅读次数:234
Leetcode: Container With Most Water
The most strait forward approach is calculating all the possible areas and keep the max one as the result. This approach needs O(n*n) time complexity,...
分类:其他好文   时间:2014-06-10 16:11:31    阅读次数:184
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!