摘要: 简单的不能再简单了 但是第一次做的时候就是死心眼 认准了只用一个指针 class Solution { public List... 阅读全文
posted @ 2020-11-19 10:49 EvanMeetTheWorld 阅读(17) 评论(0) 推荐(0)
摘要: swap in pairs class Solution { public ListNode swapPairs(ListNo... 阅读全文
posted @ 2020-11-19 09:35 EvanMeetTheWorld 阅读(27) 评论(0) 推荐(0)
摘要: 要注意的点: 注意题目说的是binary tree, binary search tree, 还是n-ary tree. 截止到现在... 阅读全文
posted @ 2020-11-19 04:09 EvanMeetTheWorld 阅读(29) 评论(0) 推荐(0)
摘要: follow up of LC116. we used to have a full binary tree but not now... 阅读全文
posted @ 2020-11-19 04:08 EvanMeetTheWorld 阅读(19) 评论(0) 推荐(0)
摘要: You are given a perfect binary tree where all leaves are on the sa... 阅读全文
posted @ 2020-11-19 03:28 EvanMeetTheWorld 阅读(20) 评论(0) 推荐(0)
摘要: Given a binary tree, flatten it to a linked list in-place. althoug... 阅读全文
posted @ 2020-11-19 02:51 EvanMeetTheWorld 阅读(16) 评论(0) 推荐(0)
摘要: Given a binary tree containing digits from 0-9 only, each root-to-... 阅读全文
posted @ 2020-11-19 02:01 EvanMeetTheWorld 阅读(11) 评论(0) 推荐(0)
摘要: 我们要记住一个原则 虽然没有用而且造成很多困惑 但是这个是“真理”。 但是在实际写代码的时候 会因此造成很多困惑。 如果传入的是基本... 阅读全文
posted @ 2020-11-19 01:48 EvanMeetTheWorld 阅读(558) 评论(0) 推荐(0)
摘要: Given a non-empty binary tree, find the maximum path sum. For this... 阅读全文
posted @ 2020-11-19 01:00 EvanMeetTheWorld 阅读(18) 评论(0) 推荐(0)