摘要:
题目:https://leetcode-cn.com/problems/gou-jian-cheng-ji-shu-zu-lcof/ 思路:从左往右遍历一遍,再从左往右遍历。 代码: class Solution { public int[] constructArr(int[] a) { int[ 阅读全文
摘要:
题目:https://leetcode-cn.com/problems/shu-de-zi-jie-gou-lcof/ 代码: /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNo 阅读全文