MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / inorder

Method inorder

LeetCode_problems/range-sum-of-bst/Solution.py:21–27  ·  view source on GitHub ↗
(self,root,output)

Source from the content-addressed store, hash-verified

19 sum+=output[i]
20 return sum
21 def inorder(self,root,output):
22 if root == None:
23 return
24 else:
25 self.inorder(root.left,output)
26 output.append(root.val)
27 self.inorder(root.right,output)

Callers 1

rangeSumBSTMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected