摘要: 前序遍历版(牛客版): public class Solution { StringBuilder path=new StringBuilder(); String Serialize(TreeNode root) { preOrder(root); return path.toString(); 阅读全文
posted @ 2021-06-01 20:23 wsshub 阅读(33) 评论(0) 推荐(0)