码迷,mamicode.com
首页 >  
搜索关键字:head first    ( 41556个结果
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
265行 JavaScript 代码实现第一人称引擎
原文:A first-person engine in 265 lines(2014-6-11)翻译:Jaward华仔今天,让我们进入一个可以伸手触摸的世界吧。在这篇文章里,我们将从零开始快速完成一次第一人称探索。本文没有涉及复杂的数学计算,只用到了光线投射技术。你可能已经见识过这种技术了,比如《上...
分类:编程语言   时间:2014-06-12 20:56:55    阅读次数:365
[leetcode]Jump Game @ Python
原题地址:https://oj.leetcode.com/problems/jump-game/题意:Given an array of non-negative integers, you are initially positioned at the first index of the arr...
分类:编程语言   时间:2014-06-12 18:04:54    阅读次数:540
[leetcode]Jump Game II @ Python
原题地址:https://oj.leetcode.com/problems/jump-game-ii/题意:Given an array of non-negative integers, you are initially positioned at the first index of the ...
分类:编程语言   时间:2014-06-12 17:38:49    阅读次数:323
《Head First 设计模式》之策略模式
策略模式(Strategy Pattern):定义了算法族,分别封装起来,让它们之间可以互相替换,此模式让算法的变化独立于使用算法的客户。 设计原则 1.找出应用中可能需要变化之处,把它们独立出来,不要和那些不需要变化的代码混在一起。 2.针对接口编辑,而不是针对实现编程。 3.多用组合,少用继承。...
分类:其他好文   时间:2014-06-12 14:22:35    阅读次数:292
.htaccess设置静态资源缓存(即浏览器缓存)
在HTTP标头中为静态资源设置过期日期或最长存在时间,可指示浏览器从本地磁盘中加载以前下载的资源,而不是通过网络加载。这样, 网站加载速度会更快.下面的代码都需要放到.htaccess中才能生效. 推荐设置过期时间为一个月, 即: max-age=2592000.通过FilesMatch设置Head...
分类:数据库   时间:2014-06-12 12:21:45    阅读次数:362
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!