摘要: 原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/14950846.html class TreeNode: def __init__(self, data): self.data = data self.left = None self.right = 阅读全文
posted @ 2021-06-29 16:49 李白与酒 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/14950405.html class Node: def __init__(self, data): self.data = data self.next = None class LinkedList: 阅读全文
posted @ 2021-06-29 15:43 李白与酒 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/14950306.html class Array: def __init__(self, capacity): self.array = [None] * capacity self.size = 0 d 阅读全文
posted @ 2021-06-29 15:38 李白与酒 阅读(33) 评论(0) 推荐(0) 编辑