超简洁的代码,无需重构二叉树,直接输出矩阵结果,我太优秀了,爱自己 class Solution: res={} def solve(self , xianxu , zhongxu ): res1=[] self.reconstruct(xianxu,zhongxu,0) for key in range(len(self.res)): res1.append(self.res[key][-1]) return res1 def reconstruct(self, xianxu, zhongxu,l...