Running time of counting nodes in a given range in a BST algorithm

前端 未结 0 1588
谎友^
谎友^ 2021-01-05 16:41

I got the pseudocode for the following algorithm, with r being the root of a BST and x,y are numbers with x

TreeCount(r,x,y)

if r=null:

    return 0

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题