https://leetcode.com/problems/same-tree/题目:Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered ...
分类:
其他好文 时间:
2015-10-08 23:12:08
阅读次数:
222
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.According to thedefinition of LCA on Wikipedia: ...
分类:
其他好文 时间:
2015-10-08 23:11:00
阅读次数:
224
Mysql默认查询是不分大小写的,可以在SQL语句中加入binary来区分大小写。binary不是函数,是类型转换运算符,它用来强制它后面的字符串为一个二进制字符串,可以理解为在字符串比较的时候区分大小写。SELECT * FROM t_resource_info WHERE binary RESO...
分类:
数据库 时间:
2015-10-08 20:01:20
阅读次数:
220
转自:http://blog.initm.com/sublime-text/今天打开sublime遇到一个提示 如上图Sublime Text Error while loading PyV8 binary:exit code 1 Try to manually install Pyv8 formh...
分类:
其他好文 时间:
2015-10-08 11:47:24
阅读次数:
1956
QuestionImplement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Callingnext()will return ...
分类:
其他好文 时间:
2015-10-08 10:25:36
阅读次数:
123
QuetionInvert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1Solution 1 -- RecursionEasy to t...
分类:
其他好文 时间:
2015-10-08 10:16:31
阅读次数:
128
Binary Tree Zigzag Level Order TraversalGiven a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then...
分类:
其他好文 时间:
2015-10-08 00:20:08
阅读次数:
202
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.According to thedefinition of LCA on Wikipedia: “The lowest ...
分类:
其他好文 时间:
2015-10-07 22:54:40
阅读次数:
200
Given a binary tree, return all root-to-leaf paths.For example, given the following binary tree: 1 / \2 3 \ 5All root-to-leaf paths are:["1->...
分类:
其他好文 时间:
2015-10-07 17:32:31
阅读次数:
125
二叉树最大深度的递归实现。/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNo...
分类:
其他好文 时间:
2015-10-07 17:19:10
阅读次数:
131