Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SinglyLL ¶
type SinglyLL struct { Value interface{} Next *SinglyLL }
SinglyLL is a singly linked list of interface{} type.
func RemoveKthFromEnd ¶
RemoveKthFromEnd removes the k-th node from the end of the list and return the head of the list. Runs in O(N) time and O(1) space.
Click to show internal directories.
Click to hide internal directories.