Min Stack
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
push(x) -- Push element x onto stack.pop() -- Removes the element on top o...
分类:
其他好文 时间:
2015-04-10 01:23:48
阅读次数:
130
PHP 魔术方法的使用① __get/__set:将对象的属性进行接管当访问一个不存在的对象属性时:index.phptitle;会抛出一个错误:Notice: Undefined property: Common\Object::$title in D:\practise\php\design\p...
分类:
Web程序 时间:
2015-04-10 01:11:06
阅读次数:
174
《Head First Design Pattern》一书中对观察者模式的定义如下:
The Observer Pattern defines a one-to-many dependency objects so that when one object changes state, all of its dependents are notified and updated automatic...
分类:
其他好文 时间:
2015-04-09 23:54:29
阅读次数:
319
Problem Description:
Let's design a new chess game. There are N positions to hold M chesses in this game. Multiple chesses can be located in the same position. The positions are constituted as a topo...
分类:
其他好文 时间:
2015-04-09 19:53:07
阅读次数:
116
实现lru 缓存
LRU Cache
Total Accepted: 35641 Total
Submissions: 241374My Submissions
Question
Solution
Design and implement a data structure for Least Recently Used (LRU) c...
分类:
系统相关 时间:
2015-04-09 17:37:34
阅读次数:
157
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 complete a...
分类:
其他好文 时间:
2015-04-09 13:28:05
阅读次数:
94
现在看来,抽屉式导航[已经成为主流导航模式之一](http://goo.gl/w4FVWS)。尽管广受批评,但我还是很喜欢该样式,因此我决定在我写的几个app上添加这个控件。这篇文章想通过介绍我觉得抽屉式导航有趣的地方,帮助阅读本文的 Android 开发者们学习到一些知识,同时从其他人的评论中学习到更多的东西....
分类:
其他好文 时间:
2015-04-08 18:03:57
阅读次数:
264
点这里Following theguidelineslaid out by Google, this free UI kit has been designed so that you can easily get your next Material Design project kickstar...
分类:
其他好文 时间:
2015-04-08 10:28:41
阅读次数:
124
HDFS is a filesystem designed for storing very large files with streaming data access patterns, running on clusters of commodity hardware. Let’s examine this statement?in more detail:? Very lar...
分类:
其他好文 时间:
2015-04-08 06:49:45
阅读次数:
128
学习java的时候,“设计模式”这个概念到处可见。比如java.io里面的 decorated pattern,Object.Clone(Object)原生态支持Prototype pattern,Swing事件响应的Observer pattern, io.util和Event中的Adapte.....
分类:
其他好文 时间:
2015-04-08 06:27:53
阅读次数:
143