types

package
v0.0.0-...-50b2653 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListNode

type ListNode struct {
	Val  int
	Next *ListNode
}

func NewList

func NewList(values ...int) *ListNode

func (*ListNode) Clone

func (l *ListNode) Clone() *ListNode

func (*ListNode) String

func (l *ListNode) String() string

type TreeNode

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

func NewTree

func NewTree(values ...int) *TreeNode

func (*TreeNode) DeepClone

func (tree *TreeNode) DeepClone() *TreeNode

func (*TreeNode) String

func (tree *TreeNode) String() string

Jump to

Keyboard shortcuts

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