在 Console 中输出树形结构
前言
在console代码中输出一个树形的结构,如下图
int[] arr = new int[]{2, 7, 4, 20, 11, 16, 8, 13, 17, 19, 3, 56, 68, 29, 18};
int len = arr.length;
int ceng = (int) Math.sqrt(len) + 1;
for (int i = 0; i <= ceng; i+...
原创
2019-09-24 20:40:44 ·
954 阅读 ·
0 评论