Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
main
Method · 0.95
main
Method · 0.95
main
Method · 0.95
main
Method · 0.95
main
Method · 0.95
main
Method · 0.45
main
Method · 0.45
Calls
2
printSpace
Method · 0.95
printNode
Method · 0.95
Tested by
no test coverage detected