Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPalindromeDoublyLL ¶
IsPalindromeDoublyLL answers the question "is this list a palindrome?". Runs on a doubly linked list. Runs in O(N) time and O(1) extra space.
func IsPalindromeSinglyLLReverse ¶
IsPalindromeSinglyLLReverse answers the question "is this list a palindrome?". Runs on a singly linked list. Runs in O(N) time and O(1) space. NOTE: This modifies the linked list during execution, but restores it after completion.
func IsPalindromeSinglyLLStack ¶
IsPalindromeSinglyLLStack answers the question "is this list a palindrome?". Runs on a singly linked list. Runs in O(N) time and O(N) space.
Types ¶
Click to show internal directories.
Click to hide internal directories.