Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { Value interface{} Next *Node }
Node is a singly linked list. NOTE: Doubly-linked list won't work here with shared paths.
func FindCommonNode ¶
FindCommonNode finds the common element in a linked list in O(N+M) time and O(1) space.
Click to show internal directories.
Click to hide internal directories.