MCPcopy Create free account
hub / github.com/Blankj/awesome-java-leetcode / printNode

Method printNode

src/com/blankj/structure/TreeNode.java:83–90  ·  view source on GitHub ↗
(int val)

Source from the content-addressed store, hash-verified

81 }
82
83 private static void printNode(int val) {
84 StringBuilder res = new StringBuilder(val + "<");
85 int spaceNum = space.length() - res.length();
86 for (int i = 0; i < spaceNum; i++) {
87 res.append(" ");
88 }
89 System.out.println(res);
90 }
91}

Callers 1

printMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected