摘要:
本文介绍两种不同生成多级目录树的方式:1. 递归生成,2. map+list 集合生成。最下方会附上完整代码。 生成树的基本规则:子节点的par_id等于父节点的id。 1. 实体类 import java.util.ArrayList; public class Menu { private in 阅读全文
摘要:
题目描述 给定一个字符串,和一个整数n,将它排列成一个n行的蛇形返回。 示例 P A H N A P L S I I G Y I R And then read line by line: "PAHNAPLSIIGYIR" Write the code that will take a string 阅读全文