Problem Description
Dumbear likes to play the Chinese Rings (Baguenaudier). It’s a game played with nine rings on a bar. The rules of this game are very simple: At first, the nine rings are all on the...
分类:
其他好文 时间:
2015-03-12 17:13:59
阅读次数:
159
在haskell中,我们有语法糖‘do’帮助表达monad运算。scala中我们也有相应语法糖‘for’。 for表达式会被scala compiler做一些变换,简单的例子如下: for { a foo.flatMap((a) => { bar.map((b) => { a + b })
})
所...
分类:
其他好文 时间:
2015-03-12 14:46:34
阅读次数:
153
Trapping Rain Water问题:Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to...
分类:
移动开发 时间:
2015-03-12 09:45:06
阅读次数:
150
The segmentation and paging mechanisms provide in the support a wide variety of approaches to memorymanagement. When segmentation and paging are combi...
分类:
移动开发 时间:
2015-03-11 23:25:14
阅读次数:
188
1.控件拖拽从右侧Palette菜单栏中选择控件,拖拽到左边的Layout中2.布局文件重用 Include Other Layout...创建bar_layout.xml 在main_layout.xml中重用 3.控件背景定义 drwable文件在drwable目录下创建s...
分类:
移动开发 时间:
2015-03-11 18:48:51
阅读次数:
212
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
For example,
Given [0,1,0,2,1,0,1,3,2,1,2,1]...
分类:
移动开发 时间:
2015-03-11 17:22:23
阅读次数:
160
时间过得太快,想抽出点时间做点东西也是很难,总有各种各样的事。之前其实看书谢了关于Notification的demo,但是感觉还是不够。于是又打开了sdk文档和谷歌官方的Status Bar Notifications developer guide。其实之前一直是看书和网上的教程在学andro.....
分类:
移动开发 时间:
2015-03-11 14:28:53
阅读次数:
144