Solution

package
v0.0.0-...-48c9e09 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintList

func PrintList(head *ListNode)

Types

type ListNode

type ListNode struct {
	Val  int
	Next *ListNode
}

func UnmarshalListByRand

func UnmarshalListByRand(max_num int, len int) *ListNode

随机初始化链表

func UnmarshalListBySlice

func UnmarshalListBySlice(nums []int) *ListNode

更具数组反序列化链表

type ListNodeQueue

type ListNodeQueue []*ListNode

func (ListNodeQueue) Len

func (que ListNodeQueue) Len() int

func (ListNodeQueue) Less

func (que ListNodeQueue) Less(i, j int) bool

func (*ListNodeQueue) Pop

func (que *ListNodeQueue) Pop() interface{}

func (*ListNodeQueue) Push

func (que *ListNodeQueue) Push(x interface{})

func (ListNodeQueue) Swap

func (que ListNodeQueue) Swap(i, j int)

Jump to

Keyboard shortcuts

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