# Redis configuration file example# Note on units: when memory size is needed, it is possible to specify# it in the usual form of 1k 5GB 4M and so for...
Recover Binary Search TreeTwo elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A sol...
分类:
其他好文 时间:
2015-01-07 14:40:01
阅读次数:
173
1、安装模式选择最小化,基本安装2、软件源设置/etc/yum.repo.d/CentOS-Base.repo设置网络员CentOS-Media.repo设置本地盘源yum--disablerepo=\*--enablerepo=c6-mediahttp://note.youdao.com/share/?id=a91e2014091efacd44de359f885a0494&type=note系统安装epel和rpmfushio..
分类:
系统相关 时间:
2015-01-07 11:14:56
阅读次数:
277
Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.Naive方法:A simple method is...
分类:
其他好文 时间:
2015-01-07 08:11:12
阅读次数:
117
原题如下;
Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
题意很简单:根据中序遍历和后序遍历的序列生成树
思路很简单:根据后序遍历的序列确定根节点,在中序遍历中找到根节点,将原来的序列分为左右两个部分,递归解决左右两个部分就可以解决这个问题。
Java代码如下:
publ...
分类:
其他好文 时间:
2015-01-07 01:52:25
阅读次数:
160
无聊做了一个桌面便签练手刚学C++,所以代码风格还没改过来。。。NotePin.h 1 /*---------------------------------------- 2 Note Pin on your screen. 3 (c) 2014 LJN 4...
Generating Gaussian Random Numbershttp://www.taygeta.com/random/gaussian.htmlThis note is about the topic of generatingGaussiapseudo-random numbers gi...
分类:
其他好文 时间:
2015-01-06 21:29:51
阅读次数:
226
Subsets IIGiven a collection of integers that might contain duplicates,S, return all possible subsets.Note:Elements in a subset must be in non-descend...
分类:
其他好文 时间:
2015-01-06 21:19:17
阅读次数:
135
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.
Calling next() will return the next smallest number in the BST.
Note: next()...
分类:
其他好文 时间:
2015-01-06 20:09:24
阅读次数:
159
SubsetsGiven a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must...
分类:
其他好文 时间:
2015-01-06 19:48:38
阅读次数:
143