workspace

package
v0.0.0-...-1bbab87 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndSentinel = &treeNode{}

EndSentinel end sentinel

Functions

func ListNodeToArray

func ListNodeToArray(head *ListNode) (nums []int)

func PredictTheWinner

func PredictTheWinner(nums []int) bool

func PredictTheWinner0

func PredictTheWinner0(nums []int, dp map[int]*Ret, start, end int) (ra int, rb int)

Types

type ListNode

type ListNode struct {
	Val  int
	Next *ListNode
}

func NewListNode

func NewListNode(nums []int) (head *ListNode)

type Ret

type Ret struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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