Given a binary tree, return the vertical order traversal of its nodes' values. (ie, from top to bottom, column by column). If two nodes are in the sam ...
分类:
其他好文 时间:
2017-05-14 10:36:53
阅读次数:
155
Problem statement: Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1...n. For example,Given n = 3, ...
分类:
其他好文 时间:
2017-05-14 10:34:51
阅读次数:
139
Problem statement: Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. For example, giv ...
分类:
其他好文 时间:
2017-05-14 10:31:48
阅读次数:
209
MySQL日志管理SHOWGLOBALVARIABLESLIKE‘%log%‘;查看关于log的全局变量一、日志分类1.错误日志2.一般查询日志3.慢查询日志4.二进制日志5.中继日志6.事务日志7.滚动日志二、日志详解1.错误日志说明:在对应的数据目录中,以主机名+.err命名的文件,错误日志记录的信息类型:记录..
分类:
数据库 时间:
2017-05-13 22:11:34
阅读次数:
259
1 102 Binary Tree Level Order Traverse public class Solution { public List<List<Integer>> levelOrder(TreeNode root) { Queue<TreeNode> queue = new Link ...
分类:
其他好文 时间:
2017-05-13 21:03:30
阅读次数:
146
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l ...
分类:
其他好文 时间:
2017-05-13 16:08:33
阅读次数:
187
题目: Given a sorted (increasing order) array, Convert it to create a binary tree with minimal height. Example Given [1,2,3,4,5,6,7], return 4 / \ 2 6 / ...
分类:
其他好文 时间:
2017-05-13 16:01:29
阅读次数:
153
98. Validate Binary Search Tree 题目链接:https://leetcode.com/problems/validate-binary-search-tree/#/description 题目大意:给定一棵二叉树,判断该二叉树是否为一棵二叉查找树。二叉树的定义:1、一个 ...
分类:
其他好文 时间:
2017-05-13 14:27:14
阅读次数:
261
Problem statement: Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example,Given n = 3, there are total ...
分类:
其他好文 时间:
2017-05-13 13:25:44
阅读次数:
145
Problem statement: Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. For example, ...
分类:
其他好文 时间:
2017-05-13 12:32:36
阅读次数:
139