數據結構之python實現隊列的鏈式存儲

定義: 鏈式隊列在建立一個隊列時,隊頭指針front和隊尾指針rear指向結點的data域和next域均爲空。python python實現: class QueueNode(): def __init__(self): self.data = None self.next = None class LinkQueue(): def __init__
相關文章
相關標籤/搜索