Given n, how many structurally unique BST's (binary search trees) that store values 1...n?For example,Given n = 3, there are a total of 5 unique BST's...
分类:
其他好文 时间:
2014-06-27 18:22:07
阅读次数:
191
$\bf(Riesz引理)$设$X_0$为赋范线性空间$X$上的闭真子空间,则对任意的$\varepsilon > 0$,存在${x_0} \in X,\left\| {{x_0}} \right\| = 1$,使得对任意的$x \in {X_0}$,有\[\left\| {x - {x_0}} \...
分类:
其他好文 时间:
2014-06-27 16:18:22
阅读次数:
155
题目:输入一棵二叉树的根节点,求该树的深度题解分析:二叉树具有天然的递归性,首先应该想递归解法/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNod...
分类:
其他好文 时间:
2014-06-27 15:58:59
阅读次数:
206
方法一:由于生成的exe文件在bin\debug目录下,可以使用向上查找目录的方式获取要读取的xml文件string haarXmlPath = @"../../haarcascade_frontalface_alt_tree.xml";FileInfo file = new FileInfo(f....
证明:(1)因为$X_0$为$X$的真子空间,于是存在${x_1} \in X\backslash {X_0}$,记$$d = \mathop {\inf }\limits_{x \in {X_0}} \left\| {x - {x_1}} \right\|$$(2)因为$X_0$是闭的,故$d>0...
分类:
其他好文 时间:
2014-06-27 14:47:52
阅读次数:
198
在MySQL线上环境我们一般只打开了binary log,slow log,有时我们需要查看general log呢?因为该log记录所有的请求,打开该日志肯定给磁盘造成很大压力,IO能力有所下降,所以该日志线上一般不打开的,这就到tcpdump闪亮登场了。tcpdump用法也不算复杂,输出就比较复...
分类:
数据库 时间:
2014-06-27 13:48:17
阅读次数:
385
汉字转拼音的库主要是:pinyin https://github.com/hotoo/pinyinPYMethod https://github.com/a85816841/PotentialGragonSnail/tree/master/ql/lib/pinyingPOAPinyin h...
分类:
移动开发 时间:
2014-06-27 13:31:58
阅读次数:
232
使用编译器vs2008。第一、第二个參数的使用方法:样例:使用ie打开指定的网页。注意第二个參数是 可运行文件+命令行參数#include "stdafx.h"#include #include int main(int argc, char* argv[]) { STARTUPINFO si...
分类:
其他好文 时间:
2014-06-27 13:23:37
阅读次数:
145
Given a list, rotate the list to the right by k places, where k is non-negative.
分类:
其他好文 时间:
2014-06-27 11:39:33
阅读次数:
289
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.时间复杂度O(n^3),最大全1子矩阵,利用直方图求解,可以参考对...
分类:
其他好文 时间:
2014-06-26 15:08:46
阅读次数:
164