Serialize_and_Deserialize_Binary_Tree

package
v0.0.0-...-001c3b2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BFSSerialize

func BFSSerialize(root *TreeNode) string

层序遍历序列化

Types

type Codec

type Codec struct {
}

func Constructor

func Constructor() Codec

type TreeNode

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

func BFSDeserialize

func BFSDeserialize(data string) *TreeNode

层序遍历反序列化

Jump to

Keyboard shortcuts

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