标题Validate Binary Search Tree通过率21.9%难度中等Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:T...
分类:
其他好文 时间:
2015-02-25 12:52:41
阅读次数:
144
Binary Tree dfs Traversal-preorder/inorder/postorder-divide&conquer-introduce dfs templatePreorder :Inorder;Postorder:Divide & Conquer :-Merge Sort (a...
分类:
其他好文 时间:
2015-02-25 11:38:00
阅读次数:
123
自己之前一直没搞清楚这两个交叉编译器到底有什么问题,特意google一番,总结如下,希望能帮到道上和我有同样困惑的兄弟….. 一. 什么是ABI和EABI 1) ABI: 二进制应用程序接口(Application Binary Interface (ABI) for the ARM Archite...
分类:
系统相关 时间:
2015-02-25 09:06:06
阅读次数:
262
C模式
C++模式
含义
“r”
ios_base::in
打开以读取
ios_base::ate
打开文件,并移到文件尾
ios_base::binary
二进制文件
ios_base::trunc
如果文件存在,...
分类:
编程语言 时间:
2015-02-24 22:16:08
阅读次数:
240
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".解题思路:这题比较基础,但想写对也不太容易。首先知道的一点,不能将数字直接Integer.pa...
分类:
其他好文 时间:
2015-02-24 21:02:42
阅读次数:
158
https://oj.leetcode.com/problems/balanced-binary-tree/Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced bina...
分类:
其他好文 时间:
2015-02-24 17:31:15
阅读次数:
118
https://oj.leetcode.com/problems/minimum-depth-of-binary-tree/Given a binary tree, find its minimum depth.The minimum depth is the number of nodes alo...
分类:
其他好文 时间:
2015-02-24 16:20:19
阅读次数:
141
Given a binary tree, return the postorder traversal of its nodes’ values.For example:
Given binary tree {1,#,2,3},
return [3,2,1].Note: Recursive solution is trivial, could you do it iteratively?...
分类:
其他好文 时间:
2015-02-24 07:02:03
阅读次数:
180
Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only n...
分类:
其他好文 时间:
2015-02-24 06:55:58
阅读次数:
171
Given a binary tree, return the preorder traversal of its nodes’ values.For example:
Given binary tree {1,#,2,3},
return [3,2,1].Note: Recursive solution is trivial, could you do it iteratively?递归...
分类:
其他好文 时间:
2015-02-24 01:53:20
阅读次数:
192