LeetCode-Algorithms-[Hard]面試題37. 序列化二叉樹

面試題37. 序列化二叉樹node // Encodes a tree to a single string. public String serialize(TreeNode root) { if (root == null) { return "[]"; } StringBuilder sb = new StringBuilder("["); Queue<T
相關文章
相關標籤/搜索