tree

package
v0.0.0-...-cde68c2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinaryTreePathArrays

func BinaryTreePathArrays(root *TreeNode) int

BinaryTreePathArrays 返回一个遍历所有路径的数组

func ShowBinaryTreePaths

func ShowBinaryTreePaths(root *TreeNode) []string

遍历二叉树的所有路径

Types

type TreeNode

type TreeNode struct {
	Val   int
	Left  *TreeNode
	Right *TreeNode
}

Definition for a binary tree node.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL