線性表的單向鏈表的排序的代碼實現(python語言)

注:代碼中的cort就是表中的crt def sort_m(self): # 表元素排序(從小到大) if self.head is None: # 將要排序的表爲空則直接返回 return cort = self.head.next # cort賦爲表的第二節點 while cort is not None: # cort不爲空 x
相關文章
相關標籤/搜索