码迷,mamicode.com
首页 >  
搜索关键字:why    ( 2025个结果)
设计模式学习–Decorator
What Decorator:动态地给一个对象添加一些额外的职责。就增加功能来说,Decorator模式相比生成子类更加灵活。 Why Decorator模式适用于可以动态的给对象增删职责,比如qq秀我们可以选择自己形象,并动态的添加衣服以及装饰,让自己的形象感觉高大上起来。Decorator适用于如下情况: 1.在不影响其他对象的情况下,以动态、透明的方式给单个对象添加职...
分类:其他好文   时间:2014-08-27 00:26:16    阅读次数:283
LeetCode Solutions : Search in Rotated Sorted Array II
Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time complexity? How and why? Write a function to determine if a given target is in the...
分类:其他好文   时间:2014-08-26 17:19:16    阅读次数:191
《Code Complete》ch.14 组织直线型的代码
WHAT?最简单的控制流:即按照先后顺序放置语句与语句块WHY?尽管组织直线型的代码是一个简单的任务,但代码结构上的一些微妙之处还是会对代码质量、正确性、可读性和可维护性带来影响HOW?必须有明确顺序的语句使依赖关系变得非常明显使子程序名能突显依赖关系利用子程序参数表明依赖关系用注释说明用断言/错误...
分类:其他好文   时间:2014-08-26 09:42:35    阅读次数:159
UVA - 11490 Just Another Problem (因数分解)
There is a wise saying “Nothingis unfair in love and war”. Probably that is why emperors of ancient days usedto use many funny and clever tricks to fool the opponents. The most commontechnique was t...
分类:其他好文   时间:2014-08-25 11:57:44    阅读次数:210
Search in Rotated Sorted Array II
Follow up for "Search in Rotated Sorted Array":What if duplicates are allowed?Would this affect the run-time complexity? How and why?Write a function ...
分类:其他好文   时间:2014-08-23 02:15:59    阅读次数:157
RCF (Remote Call Framework)
Table of Contents Version Introduction What is RCF? Why should I use RCF? Tutorial Getting started Interfaces and implementations Error handling Clien...
分类:其他好文   时间:2014-08-22 15:52:28    阅读次数:1353
Maven简介
what: maven是一个java项目的构建工具,为开发者提供了一些方便的build功能why: 1. 提供项目的最佳实践的目录格式 2. 管理项目依赖 3. 提供一些模板快速生成项目原型 4. 编写构建脚本自动构建 5. 编写以及安装插件供以后使用 6. 提供一些常...
分类:其他好文   时间:2014-08-22 10:41:35    阅读次数:186
【Leetcode】Search in Rotated Sorted Array II
Follow up for "Search in Rotated Sorted Array":What if duplicates are allowed?Would this affect the run-time complexity? How and why?Write a function ...
分类:其他好文   时间:2014-08-20 13:47:32    阅读次数:224
解决git Push时请求username和password,而不是ssh-key验证
转载自:https://blog.lowstz.org/posts/2011/11/23/why-git-push-require-username-password-github/之前开始用github时是在ubuntu下按着官方的新手指南搞定的。但最近一直在用fedora,所以也想在fedora...
分类:其他好文   时间:2014-08-18 00:01:03    阅读次数:221
LeetCode "Container With Most Water" - GREEDY?
O(n^2) is a naive solution. As rule of thumb, there must be O(n) soluion. Yes - greedy (WHY?)class Solution {public: int maxArea(vector &height) ...
分类:其他好文   时间:2014-08-16 15:04:30    阅读次数:153
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!