MCPcopy Index your code
hub / github.com/careercup/ctci / main

Method main

java/Chapter 4/Question4_3/Question.java:6–14  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

4
5public class Question {
6 public static void main(String[] args) {
7 int[] array = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
8
9 // We needed this code for other files, so check out the code in the library
10 TreeNode root = TreeNode.createMinimalBST(array);
11 System.out.println("Root? " + root.data);
12 System.out.println("Created BST? " + root.isBST());
13 System.out.println("Height: " + root.height());
14 }
15
16}

Callers

nothing calls this directly

Calls 3

createMinimalBSTMethod · 0.95
isBSTMethod · 0.95
heightMethod · 0.95

Tested by

no test coverage detected