Problem Description:Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.ge...
分类:
其他好文 时间:
2014-07-07 16:41:12
阅读次数:
237
昨天看了Head First设计模式这本书,这本书写得真不错,简单易懂。我是第一次接触设计模式,觉得这东西挺高端大气的,和别人侃的时候,我用啥XX设计模式,是不是觉得很屌的感觉?哈哈,开玩笑了,主要是学习前人的经验,这样让自己的代码设计更加规范。现在就记录一下我学到的第一个设计模式---Obse.....
分类:
其他好文 时间:
2014-07-07 16:16:24
阅读次数:
276
Problem Description: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...
分类:
其他好文 时间:
2014-07-07 16:05:24
阅读次数:
229
Problem Description: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...
分类:
其他好文 时间:
2014-07-07 15:24:41
阅读次数:
212
这是Riot的Design Director Tom Cadwell专门为中国玩家写的解说匹配系统工作原理的帖子。同一时候为了让大家更好的理解匹配系统,假设您认为您遇到了特别不公平的匹配,请回复游戏開始时间和比赛结束截图,我们会调查该局匹配是怎样完毕的,坑爹的玩家是为何添?到这一局的。非常多人抱怨看...
分类:
其他好文 时间:
2014-06-30 14:16:23
阅读次数:
238
Android L 开发者预览版包含了支持Material Design的Apps。Material Design是一个综合的视觉指南、运动和交互设计平台。在你的应用中可以按照material design 规范中定义的准则以及使用新的组件和功能在Android开发人员预览版。...
分类:
其他好文 时间:
2014-06-30 09:33:15
阅读次数:
341
题目链接:uva 10623 - Thinking Backward
题目大意:就是给出N,表示要将平面分解成N份,问有哪些可选则的方案,m表示椭圆、n表示圆形、p表示三角形的个数,m、n、p分别给定范围。
解题思路:本来这题一点思路都没有,但是在论坛上看到一个公式N=2+2m(m?1)+n(n?1)+4mn+3p(p?1)+6mp+6np
这样只要枚举m和p,求解n,判断n...
分类:
其他好文 时间:
2014-06-30 08:56:14
阅读次数:
186
题目: 基于JSP的学术交流论坛系统的设计与实现
The Design and Implementation of Academic
Exchange BBS System Based on the JSP...
分类:
Web程序 时间:
2014-06-30 08:53:08
阅读次数:
485
使用Material Design设计你的应用...
分类:
其他好文 时间:
2014-06-30 07:42:24
阅读次数:
278
【题目】
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return -1.
se...
分类:
其他好文 时间:
2014-06-29 22:45:26
阅读次数:
358