原题地址:https://oj.leetcode.com/problems/recover-binary-search-tree/题意:Two
elements of a binary search tree (BST) are swapped by mistake.Recover the
tree...
分类:
编程语言 时间:
2014-05-26 13:25:43
阅读次数:
261
This post introduces how to use the ===, eval,
Function() carefully.
分类:
编程语言 时间:
2014-05-26 12:46:27
阅读次数:
292
1 function shengchen() { 2 var arrTR =
$("#tbModule").children(); 3 var Context=""; 4 $("#tbModule").find("tr")...
分类:
Web程序 时间:
2014-05-26 12:41:49
阅读次数:
399
一直按网上的方法:1.先安装apt-get install
zlib1g-dev2.重新安装python(3.3):即是./configure 再make再make
install始终没有解决掉问题!最后发现,还需要再链接一次:#ln -s /usr/local/python3.3/bin/pyth...
分类:
编程语言 时间:
2014-05-26 12:35:01
阅读次数:
298
转载自http://www.educity.cn/java/671094.html一、常见的字符串处理函数 // 返回字符的长度,一个中文算2个
String.prototype.ChineseLength = function() { return this .replace( / [ ^ \x0...
分类:
Web程序 时间:
2014-05-26 11:56:32
阅读次数:
275
存储:文件存储: FastDFS数据库: MySQL(集群, mster,
Slave读写分离),缓存: Redis, Memcache前端:Jquery, Angular框架:python django
分类:
Web程序 时间:
2014-05-26 11:16:56
阅读次数:
240
GetMessage Function:BOOL GetMessage( LPMSG lpMsg,
HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax);消息循环:MSG msg;whil...
分类:
编程语言 时间:
2014-05-26 10:51:13
阅读次数:
257
String.prototype.format = String.prototype.f =
function () { var s = this, i = arguments.length; while (i--) { s =
s.replace(new R...
分类:
编程语言 时间:
2014-05-26 10:49:23
阅读次数:
356
javascript中的replace只会替换第一个匹配如果要全部替换的话只能重写方法实现replaceAll记录一下String.prototype.replaceAll
= function (s1, s2) { return this.replace(new RegExp(s1,"gm"),s...
分类:
编程语言 时间:
2014-05-26 10:49:03
阅读次数:
326
原题地址:https://oj.leetcode.com/problems/validate-binary-search-tree/题意:检测一颗二叉树是否是二叉查找树。解题思路:看到二叉树我们首先想到需要进行递归来解决问题。这道题递归的比较巧妙。让我们来看下面一棵树:
...
分类:
编程语言 时间:
2014-05-26 10:48:19
阅读次数:
291