今天早上回去,好好看了下书,毕竟前几天脑袋还没有反应过来,所以没怎么敲代码。如果连书都不看,那就彻底浪费时间了。 ????看得差不多的时候,收到了昨天晚上买那个水货5s,很不放心地给了钱之后,...
分类:
其他好文 时间:
2015-03-18 07:52:34
阅读次数:
230
当初项目文档是用sphinx写的,一套rst下来make html得到一整个漂亮的在线文档。现在想要将文档导出为离线的handbook pdf,于是找到了rst2pdf这个项目,作为sphinx的拓展,然后加上少量配置即可输出中文PDF。rst2p...
分类:
其他好文 时间:
2015-03-18 07:49:45
阅读次数:
181
dict dict全称dictionary(只为复习一下不常用单词),也就是其他语言中的map,使用键值对存储数据,查找速度极快。 使用方法:d = {‘key1‘:value1, ‘key2‘:value2} 查找key对应值的方法:d[‘key1‘] ?对应输出即...
分类:
编程语言 时间:
2015-03-18 07:52:07
阅读次数:
188
水题,直接贴代码。
//poj 1406
//sep9
# include
using namespace std;
__int64 f1[2024];
__int64 f2[3024];
int main()
{
__int64 index1=0,index2=0,n;
for(index1=0;index1<1300;++index1)
f1[index1]=index1*index...
分类:
其他好文 时间:
2015-03-18 07:51:27
阅读次数:
166
生活目标其实就是一件如果你愿意投入精力去做,就可能达到的事。怎么找你的目标呢……...
分类:
其他好文 时间:
2015-03-18 07:48:09
阅读次数:
158
Use a hash table to record it. The tricky part is that when the hash value is > 0, it is the index + 1. Otherwise, that string already exists in resul...
分类:
其他好文 时间:
2015-03-18 07:47:38
阅读次数:
100
It is similar to use stack for BST inorder traversal.So do the same thing :1. Get stack to store right branchs(include current node).2. When you pop t...
分类:
其他好文 时间:
2015-03-18 07:50:34
阅读次数:
139
.lck后缀的文件夹PS:这个lck文件是虚拟机的磁盘锁文件,我们知道虚拟机的磁盘与主机的磁盘是共存的,只是由于采用特定的虚拟机制,使二者互不影响。在使用虚拟机时,vmware就会生成若干磁盘锁文件,用以保护当前虚拟机占用的磁盘不会被主机或者其它虚拟机占用修改。在正常关闭虚拟机后,vmware会自动...
分类:
系统相关 时间:
2015-03-18 07:48:55
阅读次数:
187
Need a helper function to return the binary tree maximum height. If the return value is -1, it means there is a imbalanced subbranch . 1 /** 2 * Defi....
分类:
其他好文 时间:
2015-03-18 07:47:44
阅读次数:
123
This is simple, use greedy algorithm will solve the problem. 1 class Solution { 2 public: 3 int maxProfit(vector &prices) { 4 int len = pr...
分类:
其他好文 时间:
2015-03-18 07:46:55
阅读次数:
155
This is combination of II and III.1. when k >= length, it is totally II.2. when k localMax[j] = max(localMax[j] + diff, globalMax[j-1] + max(0, diff.....
分类:
其他好文 时间:
2015-03-18 07:49:13
阅读次数:
399
This question is pretty straight forward. 1 class Solution { 2 public: 3 string addBinary(string a, string b) { 4 int runnerA = a.size()-1...
分类:
其他好文 时间:
2015-03-18 07:48:23
阅读次数:
132
Same with add binary. You can also skip delete the result pointer. But just return result->next. Depends on the interviewer. 1 /** 2 * Definition for....
分类:
其他好文 时间:
2015-03-18 07:47:51
阅读次数:
114
III is a kind of I. But it require 2 maximum value. So scan from begin and scan from end to record the maximum value for currrent index.Then scan the ...
分类:
其他好文 时间:
2015-03-18 07:46:13
阅读次数:
134
使用 Start 屏幕查找 Windows 更新从屏幕右侧边缘扫入,然后点击“搜索”。如果您正在使用鼠标,请指向屏幕右下角,然后单击“搜索”。在搜索框内输入Windows 更新,点击或单击“设置”,然后点击或单击“安装可选更新”。
http://arena.acmclub.com/problem.php?id=26850数码世界的国王Shoutmon想要在n个小岛上举办一个游戏,来让数码宝贝们好好玩耍。背景是这样的:在这n个小岛之间事先安放了一些单向通道,每个通道连接两个不同的小岛,且只能按一个给定的方向通过。数码宝贝每次由通...
分类:
其他好文 时间:
2015-03-18 07:46:41
阅读次数:
205
To be honest, I dont like this problem. This is just an extra layer loop for 3sum. But two mistakes I had made…..1. when skip j, use condition j > i+1...
分类:
其他好文 时间:
2015-03-18 07:47:09
阅读次数:
130