Documentation ¶
Overview ¶
Package listnode provides a set of tools for writing LeetCode problems locally.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListNode ¶
The ListNode in this package can be used to declare the one in you package:
type ListNode = listnode.ListNode // type alias func foo(head *ListNode) {}
func FromSlice ¶ added in v1.0.14
Create a pointer of ListNode from a slice contains integer.
Refers to the problem Remove Linked List Elements: https://leetcode.com/problems/remove-linked-list-elements/.
We can follow the code below to create a ListNode from the slice:
listnode.FromSlice([]int{1, 2, 3, 4}) // *listnode.ListNode
Click to show internal directories.
Click to hide internal directories.