Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkedList ¶
type LinkedList struct { Value int Next *LinkedList }
func ReverseAlternatingKNodes ¶
func ReverseAlternatingKNodes(head *LinkedList, k int) *LinkedList
ReverseAlternatingKNodes O(n) time | O(1) space - where n is the number of nodes in the Linked List
func ReverseAlternatingKNodes1 ¶
func ReverseAlternatingKNodes1(head *LinkedList, k int) *LinkedList
ReverseAlternatingKNodes1 O(n) time | O(1) space - where n is the number of nodes in the Linked List
Click to show internal directories.
Click to hide internal directories.