Trees: Is This a Binary Search Tree?

  • + 1 comment

    Gives Error:

    Solution.java:88: error: cannot find symbol System.out.println( (tree.checkBST(root)) ? "Yes" : "No" ); ^ symbol: method checkBST(Node) location: variable tree of type Tree 1 error

    Though Tree word/type is no where used in code.