MCPcopy Create free account
hub / github.com/geekcomputers/Python / isBST

Method isBST

binarySTree isTrue_YashV1729.Java:28–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 /* returns true if given search tree is binary
27 search tree (efficient version) */
28 boolean isBST() {
29 return isBSTUtil(root, Integer.MIN_VALUE,
30 Integer.MAX_VALUE);
31 }
32
33 /* Returns true if the given tree is a BST and its
34 values are >= min and <= max. */

Callers 1

mainMethod · 0.95

Calls 1

isBSTUtilMethod · 0.95

Tested by

no test coverage detected