最小长方形Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8339Accepted Submission(s): 4476Problem Descr...
分类:
其他好文 时间:
2015-06-03 00:47:12
阅读次数:
124
Well, I do not see what this problem is for. The same code of Binary Tree Level Order Traversal can be used here. The only difference is that we shoul...
分类:
其他好文 时间:
2015-06-03 00:44:08
阅读次数:
209
This is a fundamental and yet classic problem. I share my three solutions here:Iterative solution using stack ---O(n)time andO(n)space;Recursive solut...
分类:
其他好文 时间:
2015-06-03 00:46:35
阅读次数:
131
This problem is similar to the oneBest time to sell and buy stock. To maximize the profit, in each time interval[a, b], we choose dayisuch thatprices[...
分类:
其他好文 时间:
2015-06-03 00:45:32
阅读次数:
300
This problem is a little tricky at first glance. However, if you have finished the "House Robber" problem, this problem can simply bedecomposed into t...
分类:
其他好文 时间:
2015-06-03 00:42:11
阅读次数:
231
Object-C中各类空值的分析nilNULLobject-c前言初次接触Object-C时,经常会遇到这样的困惑,使用空值时,什么时候使用nil,什么时候使用NSNULL?而且似乎用NULL也可以,另外Object-c中还有一个Nil。这么多的空值表示容易让人迷惑,下面将能过逐一分析来理清楚这4者...
分类:
其他好文 时间:
2015-06-03 00:44:24
阅读次数:
234
《找出1到正整数N中出现1的次数》编程思想:依次求出正整数每个位数上出现1的次数,累加即可得到最后想要的结果;而每一位上出现1的个数与和它相邻的其它位数上的数字有关系(以此位置上的数为对称轴,其左边的所有数字作为其...
分类:
其他好文 时间:
2015-06-03 00:44:28
阅读次数:
233
Well, the basic idea is fairly straightforward. We maintain a mappingmpfrom a value innumsto its position (index)i. Each time we meet an unseen value,...
分类:
其他好文 时间:
2015-06-03 00:43:26
阅读次数:
237
并发编程笔记总纲:动机、计划、参考书籍和进展。
分类:
其他好文 时间:
2015-06-03 00:43:35
阅读次数:
230
我们团队在5月29日进行了第二阶段第四次站立会议。一、前一天完成的任务:韩雪东:对倒计时工具内部控件进行了部分更改与美化柴珏辉:昨天在为主界面设计自主添加应用快捷方式功能邓锐:找了项目的图标,测试完扫雷,发现画面展现速度慢,失败后雷出现的速度也慢,尤其在游戏难度高的时候,另外,界面上还有待修改。二、...
分类:
其他好文 时间:
2015-06-03 00:42:50
阅读次数:
235
https://leetcode.com/problems/roman-to-integer/原题:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to...
分类:
其他好文 时间:
2015-06-03 00:43:07
阅读次数:
181
Well, this problem is in fact the same toUnique Pathsin spirit. The introduction of obstacles only changes the boundary conditions and make some point...
分类:
其他好文 时间:
2015-06-03 00:43:14
阅读次数:
156
1.编辑器的入门使用去http://ueditor.baidu.com下载选择自己需要的字符集类型,下载本地表情然后解压放在虚拟服务器admin目录下ueditor1_4_3-utf8-php 名字修改为 ueditor把里面的内容粘在一级目录下把如下代码放入需要的的body目录下,注意路径的问题不...
分类:
其他好文 时间:
2015-06-03 00:40:53
阅读次数:
150
Well, there is a nice and succinct solution to this problem using math skills. However, personally I guess it would be safer to use DP in a coding int...
分类:
其他好文 时间:
2015-06-03 00:42:00
阅读次数:
157
Well, this problem is a traditional dynamic programming problem. Suppose the minimum path sum of arriving at point(i, j)isS[i][j], then we have the fo...
分类:
其他好文 时间:
2015-06-03 00:39:59
阅读次数:
220
This problem seems to be tricky at first glance. However, if you know Morris traversal, it is just the preorder case of Morris traversal and the code ...
分类:
其他好文 时间:
2015-06-03 00:42:17
阅读次数:
136
https://developer.apple.com/library/ios/documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/Introduction/Introduction.html
分类:
其他好文 时间:
2015-06-03 00:40:38
阅读次数:
121