码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
100. Same Tree(五星)
Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally ident ...
分类:其他好文   时间:2018-02-28 01:10:54    阅读次数:119
LC.226.Invert Binary Tree
https://leetcode.com/problems/invert-binary-tree/description/Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1time: o(n) : n n... ...
分类:其他好文   时间:2018-02-28 01:04:25    阅读次数:221
LaTex/Overleaf使用笔记
1. 添加网页引用 @misc{ r1, author = "Wikipedia", title = "Binary decision diagram {W}ikipedia{,} The Free Encyclopedia", year = "2016", url = "https://en.wi ...
分类:其他好文   时间:2018-02-28 01:03:19    阅读次数:1539
LC.104. Maximum Depth of Binary Tree
https://leetcode.com/problems/maximum-depth-of-binary-tree/description/Given a binary tree, find its maximum depth.The maximum depth is the number of ... ...
分类:其他好文   时间:2018-02-27 10:23:20    阅读次数:189
LC.110. Balanced Binary Tree
https://leetcode.com/problems/balanced-binary-tree/description/Given a binary tree, determine if it is height-balanced.For this problem, a height-bala... ...
分类:其他好文   时间:2018-02-27 10:20:05    阅读次数:140
树的重心
Consider a tree T with N (1 <= N <= 20,000) nodes numbered 1...N. Deleting any node from the tree yields a forest: a collection of one or more trees. ...
分类:其他好文   时间:2018-02-27 01:19:24    阅读次数:177
Mysql主从同步配置
Mysql主从同步配置 一、主服务器master配置: 1、修改my.ini,然后重启 [mysqld] server-id=1 # 设置master机器的ID(主从机器间该ID必须唯一,互相不冲突) log-bin=mysql-bin # 开启binary log并指定binary log的文件名 ...
分类:数据库   时间:2018-02-26 19:00:11    阅读次数:189
JVM Specification 9th Edition (4) Chapter 4. The class File Format
Chapter 4. The class File Format Chapter 4. The class File Format Table of Contents 4.1. The ClassFile Structure4.2. Names4.2.1. Binary Class and Inte ...
分类:其他好文   时间:2018-02-26 14:59:05    阅读次数:188
二叉树 - 遍历和存储结构
在《二叉树的定义和性质》中我们已经认识了二叉树这种数据结构。我们知道链表的每个节点可以有一个后继,而二叉树(Binary Tree)的每个节点可以有两个后继。比如这样定义二叉树的节点: typedef struct node *link; struct node { unsigned char it ...
分类:其他好文   时间:2018-02-26 11:27:42    阅读次数:162
codeforces 917D Stranger Trees
题目链接 正解:矩阵树定理+拉格朗日插值。 一下午就搞了这一道题,看鬼畜英文题解看了好久。。 首先这道题出题人给了两种做法,感觉容斥+$prufer$序列+$dp$的做法细节有点多所以没看,然而这个做法似乎更难想。。 我们先构造一个函数$f(x)$,表示用一个完全图和$x-1$棵原树的边,构成的生成 ...
分类:其他好文   时间:2018-02-25 19:25:45    阅读次数:267
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!