package
module
Version:
v0.0.0-...-0616fc3
Opens a new window with list of versions in this module.
Published: Aug 31, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
leetcode-go
leetcode record using golang
Documentation
¶
type Node struct {
Val int
Neighbors []*Node
}
Definition for a Node.
判断是否为高度平衡二叉树
每个节点左右子树高度差绝对值不超过1
- Definition for a binary tree node.
- type TreeNode struct {
- Val int
- Left *TreeNode
- Right *TreeNode
- }
给定二叉树 [1,2,2,3,3,null,null,4,4]
1
/ \
2 2
/ \
3 3
/ \
4 4
返回 false
*
- Definition for a binary tree node.
*
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.