摘要:
235. 二叉搜索树的最近公共祖先 因为是搜索二叉树,所以只要值在q和p之间,那么就是lowest common ancestor # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # se 阅读全文
摘要:
530.二叉搜索树的最小绝对差 # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.lef 阅读全文
摘要:
Scalability: an application / system can handle greater loads by adapting. There are two kinds of scalability Vertical Scalability (=scale up / down) 阅读全文
摘要:
654.最大二叉树 # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = le 阅读全文
摘要:
EBS (Elastic Block Store) Volume it is a network drive you can attach to you instances while they run it allows you instances to persist data, even af 阅读全文
摘要:
110.平衡二叉树 # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = le 阅读全文