mylist

package
v0.0.0-...-cde68c2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSize

func GetSize(head *ListNode) int

获取链表长度

func IsEmpty

func IsEmpty(head *ListNode) bool

链表是否为空

func PrintList

func PrintList(head *ListNode)

Types

type ListNode

type ListNode struct {
	Val  int
	Next *ListNode
}

func Array2List

func Array2List(arr []int) *ListNode

Array2List 将slice arr 生成一个链表

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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