线性表的单向链表的排序的代码实现(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
相关文章
相关标签/搜索