leetcode

package
v0.0.0-...-cbfb9cd Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(a *ListNode) int

Count . With the current node as head, count the number of nodes including the head.

Types

type ListNode

type ListNode struct {
	Val  int
	Next *ListNode
}

func M

func M(head, tail *ListNode) *ListNode

func (*ListNode) Count

func (n *ListNode) Count() int

Count . With the current node as head, count the number of nodes including the head.

Jump to

Keyboard shortcuts

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