util

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsIntArrayEqual

func IsIntArrayEqual(a1, a2 []int) bool

IsIntArrayEqual compares two []int and returns if they are the same.

func IsStrArrayEqual

func IsStrArrayEqual(a1, a2 []string) bool

IsStrArrayEqual compares two []string and returns if they are the same.

func LengthOfLinkedList

func LengthOfLinkedList(node *ListNode) int

func PrintLinkedList

func PrintLinkedList(node *ListNode)

Types

type BinaryTreeNode

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

type ListNode

type ListNode struct {
	Next *ListNode
	Val  int
}

func GenerateLinkedList

func GenerateLinkedList(vals []int) *ListNode

Jump to

Keyboard shortcuts

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