作为前端程序员,PHP是经常使用的语言之一,其开发环境有很多,诸如LAMP,WAMP和MAMP等,今天就介绍第一种也是最常用的一种,LAMP——Linux + Apache + MySQL + PHP1.检查编译环境gcc -v 2.准备安装包#安装包的顺序也是安装的顺序,所以,可以按顺序下载,边下...
分类:
其他好文 时间:
2014-06-18 23:23:15
阅读次数:
340
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
For example:
Given binary tree {3,9,20,#,#,15,7},
...
分类:
其他好文 时间:
2014-06-15 15:17:43
阅读次数:
192
Given a binary tree containing digits from
0-9 only, each root-to-leaf path
could represent a number.
An example is the root-to-leaf path
1->2->3 which represents the number 123.
F...
分类:
其他好文 时间:
2014-06-15 14:51:02
阅读次数:
167
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).
For example:
Given binary tree {3,9,20,#,#,15,7},
3
/ 9 20
...
分类:
其他好文 时间:
2014-06-15 13:26:54
阅读次数:
200
题目:Unique Binary Search TreesGivenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a...
分类:
其他好文 时间:
2014-06-15 13:16:53
阅读次数:
202
二叉树(Binary Tree)是个有限元素的集合,该集合或者为空、或者由一个称为根(root)的元素及两个不相交的、被分别称为左子树和右子树的二叉树组成。当集合为空时,称该二叉树为空二叉树。在二叉树中,一个元素也称作一个结点。基本概念:(1)结点的度。结点所拥有的子树的个数称为该结点的度。(2)叶...
分类:
其他好文 时间:
2014-06-15 11:14:30
阅读次数:
255
1.下载arm-linux-gcc编译器。
2.将下载好的编译器压缩文件拷贝到linux中,注意不要在windows中解压,因为RAR解压工具解压gzip压缩工具压缩的文件可能会出问题。
尽量将编译器的压缩文件放置到根目录下(其实也不一定是要根目录,但是我自己使用过程中发现有一个厂家提供的编译器没有安装在指定的位置,编译器提示库找不到),这样做的目的是为了尽量减少麻烦。拷贝好之后,在终端使用:...
分类:
系统相关 时间:
2014-06-15 09:59:11
阅读次数:
328
1 迭代,重要关系 p->right = s.top(); 1 class flat{ 2 public: 3 void flatten(TreeNode* root) { 4 if (root == NULL) return; 5 ...
分类:
其他好文 时间:
2014-06-14 16:50:41
阅读次数:
172
1、
??
Binary Tree Inorder Traversal
Given a binary tree, return the inorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return ...
分类:
其他好文 时间:
2014-06-14 14:11:27
阅读次数:
315
gcc 命令的使用
在使用GCC编译程序时,编译过程可以被细分为四个阶段:
预处理(Pre-Processing) 编译(Compiling) 汇编(Assembling) 链接(Linking)
如果不加任何参数, gcc 默认执行所有的操作,直接生成可执行文件。
以上四个阶段对应参数为:
1. -E 只执行预处理
2. –S 只编译,不汇...
分类:
数据库 时间:
2014-06-14 13:28:23
阅读次数:
359