哪位大虾解决一下?
How to write code to delete a specific node in a single link list (单链表)that takes O(1) time? That is, the time deleting a node is the same (independent from the length of the list.) Link list uses pointers,
not hash. Input includes a pointer to the head and a pointer to the node to delete. Show your algorithm with pseudo code. Hint: just 2 steps.