Loading

摘要: 题目:https://leetcode-cn.com/problems/gou-jian-cheng-ji-shu-zu-lcof/ 思路:从左往右遍历一遍,再从左往右遍历。 代码: class Solution { public int[] constructArr(int[] a) { int[ 阅读全文
posted @ 2020-12-03 13:37 yoyuLiu 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 题目:https://leetcode-cn.com/problems/shu-de-zi-jie-gou-lcof/ 代码: /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNo 阅读全文
posted @ 2020-12-03 00:12 yoyuLiu 阅读(66) 评论(0) 推荐(0) 编辑