common

package
v0.0.0-...-38cfe7b Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 1 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
}

ListNode - ListNode

func ListNodeOf

func ListNodeOf(numbers ...int) *ListNode

ListNodeOf - ListNodeOf

func (*ListNode) Equals

func (node *ListNode) Equals(other *ListNode) bool

func (*ListNode) Length

func (node *ListNode) Length() uint32

Length - Length

func (*ListNode) String

func (node *ListNode) String() string

String - String

type TreeNode

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

func (*TreeNode) Equals

func (n *TreeNode) Equals(other *TreeNode) bool

type TreeNodeBuilder

type TreeNodeBuilder interface {
	Add(value int) TreeNodeBuilder
	AddAll(values ...int) TreeNodeBuilder
	AddNil() TreeNodeBuilder
	Build() *TreeNode
}

func NewTreeNodeBuilder

func NewTreeNodeBuilder() TreeNodeBuilder

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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