摘要: 实际上感觉是带参的宽搜,但是因为懒得写。。还是强行写了深搜。这道题在lt上提交有bug,好像是因为我用了node的未声明变量?单独测试是没问题的class Solution(object): result = [] def buildNode(self, v, father, root): ret = TreeNode(v) ret.fath... 阅读全文
posted @ 2019-03-20 10:59 miuc 阅读(114) 评论(0) 推荐(0) 编辑