码迷,mamicode.com
首页 >  
搜索关键字:a robot has been pro    ( 18579个结果
leetcode--Maximum Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1,2,1,...
分类:其他好文   时间:2014-06-20 08:59:38    阅读次数:235
HeadFisrt 设计模式03 装饰者
类应该对扩展开放, 对修改关闭.所谓装饰者模式, 是指用其他的类来装饰某个类,装饰者说白了就是使用 has-a 来代替 is-a隐喻咖啡店, 有很多种咖啡, 咖啡里还要增加一些 milk, 面包片啊, 等等. 针对加的东西不同, 计算出来的费用不同, 那么我们需要怎么做呢?1. 首先创建一个 cof...
分类:其他好文   时间:2014-06-11 13:03:28    阅读次数:349
Careercup | Chapter 1
1.1Implement an algorithm to determine if a string has all unique characters. What if you cannot use additional data structures?字符串问题,需要先确定是不是只有ASCII码...
分类:其他好文   时间:2014-06-11 12:27:53    阅读次数:247
解决Linux下Svn检出Windows SVN服务器上项目SSL handshake failed: SSL error: Key usage violation in certificate has been detected.
在Linux上检出windows SVN服务器上项目时出现了SSLhandshakefailed:SSLerror:Keyusageviolationincertificatehasbeendetected.的错误。最后通过从网上检索找到了一个答案: 可以同时解决掉在Ubuntu上和CentOS上检...
分类:Windows程序   时间:2014-06-11 11:33:59    阅读次数:306
Android排错:has leaked window com.android.internal.policy.impl.PhoneWindow$ that was originally added here
原文地址:http://www.cnblogs.com/royenhome/archive/2011/05/20/2051879.html异常场景:经常在应用中需要处理一些耗时的工作,诸如读取大文件、访问网络资源等。为了避免因程序假死而带来的糟糕用户体验,通常我们可以通过线程+Handler或者An...
分类:移动开发   时间:2014-06-11 10:01:47    阅读次数:229
word and its explanation
Liskov Substitution Princple, LSPFor every object "o1" from type "t1", there is object "o2" from type "t2", when all "o2" is replaced with "o1" in pro...
分类:其他好文   时间:2014-06-11 08:52:44    阅读次数:221
Path Sum
题目 Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. For example: Given the below binary t...
分类:其他好文   时间:2014-06-07 15:31:32    阅读次数:179
LeetCode: Path Sum [112]
【题目】 Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. For example: Given the below binary tree and sum = 22, 5 / ...
分类:其他好文   时间:2014-06-07 13:57:37    阅读次数:210
projecteuler---->problem=19----Counting Sundays
You are given the following information, but you may prefer to do some research for yourself. 1 Jan 1900 was a Monday.Thirty days has September, April, June and November. All the rest have thirty...
分类:其他好文   时间:2014-06-07 13:56:52    阅读次数:166
ZOJ 3789 Gears
并查集, 删除节点操作,可以用新建节点代替 维护每个点到跟节点的距离 Gears Time Limit: 2 Seconds      Memory Limit: 65536 KB Bob has N (1 ≤ N ≤ 2*105) gears (numbered from 1 to N). Each gear can rotate clockwise or co...
分类:其他好文   时间:2014-06-07 11:33:37    阅读次数:227
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!