LeetCode-237:Delete Node in a Linked List (Python)
问题如下:
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.
Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third node with
原创
2016-04-09 23:29:06 ·
762 阅读 ·
0 评论