MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / main

Method main

Programs/BinaryTreeInorder.java:105–121  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

103 }
104
105 public static void main(String[] args) throws IOException {
106 BufferedReader br =
107 new BufferedReader(new InputStreamReader(System.in));
108
109 int t = Integer.parseInt(br.readLine());
110
111 while (t > 0) {
112 String s = br.readLine();
113 Node root = buildTree(s);
114 Solution g = new Solution();
115 ArrayList<Integer> res = g.inOrder(root);
116 for (int i = 0; i < res.size(); i++)
117 System.out.print(res.get(i) + " ");
118 System.out.print("\n");
119 t--;
120 }
121 }
122}

Callers

nothing calls this directly

Calls 4

buildTreeMethod · 0.95
inOrderMethod · 0.95
printMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected