序列化:前序遍历二叉树存入字符串中;反序列化:根据前序遍历重建二叉树 public class Solution { String Serialize(TreeNode root) { StringBuffer sb = new StringBuffer(); if(root == null){ sb.append("#,"); return sb.toString(); } sb.append(root.val+","); sb.append(Seriali...