摘要:
Description: Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Given linked list -- head = 阅读全文
摘要:
Description: Reverse a singly linked list. Example: Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL Follow up: A linked list can be reversed ei 阅读全文
摘要:
Description: Given a non-empty, singly linked list with head node head, return a middle node of linked list. If there are two middle nodes, return the 阅读全文
摘要:
Description: For a non-negative integer X, the array-form of X is an array of its digits in left to right order. For example, if X = 1231, then the ar 阅读全文