摘要:
Implement a function to check if a linked list is a palindrome.Reverse the second half of the list and then compare it with the first half./* Assume t... 阅读全文
摘要:
Given a circular linked list, implement an algorithm which returns the node at the beginning of the loop.DEFINITIONCircular linked list: A (corrupt) l... 阅读全文
摘要:
You have two numbers represented by a linked list, where each node contains a single digit. The digits are stored in reverse order, such that the Ts d... 阅读全文
摘要:
Write code to partition a linked list around a value x, such that all nodes less than x come before all nodes greater than or equal to x.Use two addit... 阅读全文