invertbinarytree

package
v0.0.0-...-8653abf Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TreeNode

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

func InvertTree3

func InvertTree3(root *TreeNode) *TreeNode

Method 3 Runtime: 0 ms, Memory Usage: 2.1 MB

func InvertTreeDivde

func InvertTreeDivde(root *TreeNode) *TreeNode

Method 2 Runtime: 4 ms, Memory Usage: 2.2 MB

func InvertTreeTraverse

func InvertTreeTraverse(root *TreeNode) *TreeNode

Method 1 InvertTree inverts the binary tree Runtime: 0 ms, Memory Usage: 2.1 MB

Jump to

Keyboard shortcuts

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