码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
LeetCode 67 Add Binary(二进制相加)(*)
翻译 给定两个二进制字符串,返回它们的和(也是二进制字符串)。 比如, a = "11" b = "1" 返回 "100". 原文 Given two binary strings, return their sum (also a binary string). For example, a = ...
分类:其他好文   时间:2017-07-11 21:24:49    阅读次数:204
[LeetCode] Maximum Depth of Binary Tree
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-07-11 11:08:51    阅读次数:191
[LeetCode] Convert BST to Greater Tree
Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all ...
分类:其他好文   时间:2017-07-10 23:48:22    阅读次数:265
平衡二叉树
1、基础知识 平衡二叉树(Balanced Binary Tree)又被称为AVL树(有别于AVL算法),且具有以下性质:1.它是一 棵空树或它的左右两个子树的高度差的绝对值不超过1,并且左右两个子树都是一棵平衡二叉树。2.其高度一般都良好地维持在O(log2n),大大降低了操作的时间复杂度。3.平 ...
分类:其他好文   时间:2017-07-10 23:45:17    阅读次数:225
二叉查找树
二叉查找(搜索)树(Binary Search Tree)又称二叉排序树(Binary Sort Tree),是基于二叉树,BST具有下列性质:1、若左子树不空,则其左子树上的所有结点的值均小于根结点的值;2、若右子树不空,则其右子树上的所有结点的值均大于根结点的值;3、左、右子树也分别为二叉查找树 ...
分类:其他好文   时间:2017-07-10 23:44:04    阅读次数:310
leetCode(26):Unique Binary Search Trees
Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example, Given n = 3, there are a total of 5 unique BST ...
分类:其他好文   时间:2017-07-10 20:14:35    阅读次数:171
PAT-1102(Invert a Binary Tree)
题目见这里 和1099略微相似,考察二叉树和基本的遍历,算是简单的啦,下标还充当了数据域,主要是知道要标记访问到的下标,从而确定root ...
分类:其他好文   时间:2017-07-10 15:11:45    阅读次数:178
Average of Levels in Binary Tree
Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array. Example 1: Input: 3 / \ 9 20 / \ 15 7 Outp ...
分类:其他好文   时间:2017-07-10 13:26:38    阅读次数:161
java 项目开启mysql binlog参数后报500错误:
问题: Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited t ...
分类:数据库   时间:2017-07-10 12:04:37    阅读次数:184
MySQL的日志
Error log:错误日志 Query Log:查询日志 general query log/slow query log:超过设定时间(long_query_time)或者没走索引的语句 Binary Log:二进制日志,记录数据被修改的相关信息 开启查询日志(一般不开): 慢查询参数long_ ...
分类:数据库   时间:2017-07-10 01:14:43    阅读次数:321
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!