文章分类 - 数据结构
摘要:class Node: def __init__(self, val=0, left=None, right=None): self.elem = val self.lchild = left self.rchild = right class BinaryTree: def __init__(se
阅读全文
摘要:class ListNode: def __init__(self, val): self.val = val self.next = None ############### 链表反转 ############################################ def main():
阅读全文