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

Method print

src/com/blankj/structure/TreeNode.java:61–63  ·  view source on GitHub ↗

竖向打印二叉树 @param root 二叉树根节点

(TreeNode root)

Source from the content-addressed store, hash-verified

59 * @param root 二叉树根节点
60 */
61 public static void print(TreeNode root) {
62 print(root, 0);
63 }
64
65 private static void print(TreeNode node, int deep) {
66 if (node == null) {

Callers 7

mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.45
mainMethod · 0.45

Calls 2

printSpaceMethod · 0.95
printNodeMethod · 0.95

Tested by

no test coverage detected