码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
diskqueue.go
package nsqdimport ( "bufio" "bytes" "encoding/binary" "errors" "fmt" "io" "math/rand" "os" "path" "sync" "sync/atomic" "time")// diskQueue implements... ...
分类:其他好文   时间:2017-08-31 12:39:19    阅读次数:122
protocol_v2.go
package nsqdimport ( "bytes" "encoding/binary" "encoding/json" "errors" "fmt" "io" "math" "math/rand" "net" "sync/atomic" "time" "unsafe" "github.com/... ...
分类:其他好文   时间:2017-08-31 12:35:41    阅读次数:164
nsqlookup_protocol_v1.go
package nsqlookupdimport ( "bufio" "encoding/binary" "encoding/json" "fmt" "io" "log" "net" "os" "strings" "sync/atomic" "time" "github.com/nsqio/nsq/... ...
分类:数据库   时间:2017-08-31 12:33:38    阅读次数:222
leetcode--110. Balanced Binary Tree
1、问题描述 Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which t ...
分类:其他好文   时间:2017-08-31 11:10:32    阅读次数:164
leetcode--515. Find Largest Value in Each Tree Row
1、问题描述 You need to find the largest value in each row of a binary tree. Example: 2、边界条件:root==null 3、思路:层级遍历,每一层找到最大值,记录 4、代码实现 5、api ...
分类:其他好文   时间:2017-08-31 11:08:25    阅读次数:169
leetcode--101. Symmetric Tree
1、问题描述 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is ...
分类:其他好文   时间:2017-08-31 11:07:59    阅读次数:186
leetcode-- 100. Same Tree
1、问题描述 Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally iden ...
分类:其他好文   时间:2017-08-31 11:05:54    阅读次数:119
Tree--lecture08
1、二叉树 完全二叉树(complete binary tree):除了最下面一层都是满的,最下面一层也是优先排列在左边。这样的话父亲节点和孩子节点就在序号上面有关系: 父亲节点为n,那么子节点的编号为2n和2n+1。这样就可以操作序号来操作完全二叉树。 A1 / \ B2 C3 / \ / \ D ...
分类:其他好文   时间:2017-08-31 11:00:37    阅读次数:114
LeetCode 67. Add Binary
https://leetcode.com/problems/add-binary/description/ Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Re ...
分类:其他好文   时间:2017-08-30 20:45:23    阅读次数:164
Subsequence Count 2017ccpc网络赛 1006 dp+线段树维护矩阵
Problem Description Given a binary string S[1,...,N] (i.e. a sequence of 0's and 1's), and Q queries on the string.There are two types of queries:1. F ...
分类:其他好文   时间:2017-08-30 19:58:52    阅读次数:98
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!