
推 Ericz7000: 大師 10/13 09:29
推 surimodo: 你這解法太粗暴惹 10/13 09:30
→ surimodo: 而且也不是真正意義上的刪除ㄅ 只是指不到? 10/13 09:31
→ surimodo: 理想做法應該是pop出來? 10/13 09:32
Delete the given node. Note that by deleting the node, we do not mean
removing it from memory. We mean:
* The value of the given node should not exist in the linked list.
* The number of nodes in the linked list should decrease by one.
* All the values before node should be in the same order.
* All the values after node should be in the same order.
※ 編輯: Rushia (1.160.89.219 臺灣), 10/13/2022 09:36:07
推 pandix: 應該是因為平常linked list的題目都會要求不能改value 10/13 09:47
→ pandix: 這題想提醒你一下而已 10/13 09:47
推 SecondRun: 大師 10/13 10:26
推 hw102050: 這樣原本的node(1),不就沒人指了? 10/13 10:45
→ Rushia: 在鏈結串列裡面 沒人指就和刪除差不多了 對ㄚ 10/13 11:36
推 GTR12534: 會佔用記憶體吧 嗎 10/13 18:53