1.后序遍历的非递归实现。(左右根)难点:后序遍历的非递归实现是三种遍历方式中最难的一种。因为在后序遍历中,要保证左孩子和右孩子都已被访问并且左孩子在右孩子前访问才能访问根结点,这就为流程的控制带来了难题。下面介绍两种思路。思路:有个关键的就是unUsed这个标识符。当unUsed=1时,表示该节点...
分类:
其他好文 时间:
2014-11-11 16:28:14
阅读次数:
171
2.2 Installing MySQL on Unix/Linux Using Generic Binaries Oracle provides a set of binary distributions of MySQL. These include binary distributio...
分类:
数据库 时间:
2014-11-11 15:52:18
阅读次数:
388
BFS is faster to find shortest path from root to leaf node of a tree. But the tradeoff is to use more memory.the basic trategy is to maintain a list t...
分类:
编程语言 时间:
2014-11-11 07:03:12
阅读次数:
259
Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.后序遍历的最后一个元素就是根...
分类:
其他好文 时间:
2014-11-11 00:40:07
阅读次数:
189
1、两台机器,安装好版本一致的MySQL 192.168.29.128 (master) MySQL-5.6.21 192.168.29.129(slave) MySQL-5.6.212、配置master 配置binary log和server ID[root@Luxh-01 ~]# v...
分类:
数据库 时间:
2014-11-10 23:20:13
阅读次数:
344
Add BinaryGiven two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100". 1 public class Solution { 2 publ...
分类:
其他好文 时间:
2014-11-10 23:10:14
阅读次数:
310
An Easy ProblemDescriptionAs we known, data stored in the computers is in binary form. The problem we discuss now is about the positive integers and i...
分类:
其他好文 时间:
2014-11-10 17:39:08
阅读次数:
196
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.Serialization.Formatters.Binary;using System.Ru...
Binary NumberTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1475Accepted Submission(s): 933Proble...
分类:
其他好文 时间:
2014-11-10 17:25:41
阅读次数:
267
题目描述:
Given a binary tree, return the postorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [3,2,1].
思路:以中右左的...
分类:
其他好文 时间:
2014-11-10 13:53:20
阅读次数:
163