check if a tree is a binary search tree

前端 未结 9 897
遥遥无期
遥遥无期 2021-01-30 09:29

I have written the following code to check if a tree is a Binary search tree. Please help me check the code:

Okay! The code is edited now. This simple solution was sugge

9条回答
  •  南方客
    南方客 (楼主)
    2021-01-30 09:53

    right, another simple solution is do an inorder visit

    java code here

提交回复
热议问题