Check if binary tree is bst

后端 未结 0 1933
甜味超标
甜味超标 2021-02-19 00:34

I need to check if binary tree is a binary search tree. I\'ve tried to use this algorithm

public boolean isBST(Node node)
    {
       if(node == null)
                   


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