b********e 发帖数: 693 | 1 give you a node in linked list, how do you delete?
if the node is in the middle of list, it is not difficult.
how about the node is head or the node is tail.
Thanks | p******r 发帖数: 2999 | 2 head or middle cases are the same
but tail is not doable
【在 b********e 的大作中提到】 : give you a node in linked list, how do you delete? : if the node is in the middle of list, it is not difficult. : how about the node is head or the node is tail. : Thanks
| c**y 发帖数: 172 | 3 It is because deleting the current is done by deleting its following one.
For the last element, there is no such one to delete.Thank you for sharing.
【在 p******r 的大作中提到】 : head or middle cases are the same : but tail is not doable
|
|