單鏈表操作之刪除

一、從開始處刪除 從開始處刪除,通常可以假設結構中至少有一個節點。這個操作返回刪除項。其形式如下: # coding: utf-8 class Node(object): def __init__(self, data, next=None): self.data = data self.next = next head = None for count
相關文章
相關標籤/搜索