Two elements of a binary search tree (BST) are
swapped by mistake.Recover the tree without changing its structure.Note:A
solution using O(n) space is ...
分类:
其他好文 时间:
2014-05-17 11:30:21
阅读次数:
247
LNMP1.0可以在Linux系统下快速搭建PHP环境,以前操作其它服务器也用过LNMP环境,重未出现过类似错误,现将解决过程记录一下。一、服务器环境
操作系统:CentOS-6.4 服务器环境:集成环境LNMP1.0二、步骤重现 1、安装LNMP1.0,具体操作方法见这里,安装成功; 2、...
分类:
数据库 时间:
2014-05-16 19:38:14
阅读次数:
421
题目: Given a linked list, determine if it has a
cycle in it. Follow up: Can you solve it without using extra space?解题思路:
使用快慢指针,快指针每次走两步,慢指针每次走一步...
分类:
其他好文 时间:
2014-05-16 05:19:21
阅读次数:
271
题目: Given a linked list, return the node where the
cycle begins. If there is no cycle, returnnull. Follow up: Can you solve it
without using extr...
分类:
其他好文 时间:
2014-05-16 04:50:13
阅读次数:
329
安装opencv2.0
解压OpenCV-2.0.0.tar.bz2
tar xvf OpenCV-2.0.0.tar.bz2
配置
./configure --host=arm-linux --without-carbon --without-quicktime --without-1394libs --without-ffmpeg --wi...
分类:
系统相关 时间:
2014-05-13 14:51:36
阅读次数:
402
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=151
For each list of words, output a line with each word reversed without changing the order of the words.
This problem contains multi...
分类:
其他好文 时间:
2014-05-11 22:20:43
阅读次数:
443
Divide two integers without using
multiplication, division and mod
operator.这道题要AC也不容易,许多基础概念不懂。最后看了答案,自己再做也很难AC。还是要记住一些关键点才行:1.
负数的补码等于反码+1.所以负数取绝对值就...
分类:
其他好文 时间:
2014-05-10 06:52:22
阅读次数:
380
【Theos简介】 Theos is a cross-platform suite of
development tools for managing, developing, and deploying iOS software without
the use of Xcode. The Th.....
分类:
其他好文 时间:
2014-05-09 23:33:29
阅读次数:
456
Given a linked list, return the node where the
cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it
without using extra space?首先不...
分类:
其他好文 时间:
2014-05-09 10:42:09
阅读次数:
329
2520 is the smallest number that can be divided
by each of the numbers from 1 to 10 without any remainder.What is the smallest
positive number that is...
分类:
其他好文 时间:
2014-05-08 14:36:50
阅读次数:
248