leetcode
938 Range Sum of BST
link: Range Sum of BST Thought When first saw this question, I think using tree traverse could solve it and it did works. Code # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def rangeSumBST(self,