上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: Leetcode春季打卡活动 第二题: "206. 反转链表" "206. 反转链表" Talk is cheap . Show me the code . 阅读全文
posted @ 2020-03-02 11:23 Herman·H 阅读(132) 评论(0) 推荐(0)
摘要: Leetcode 春季打卡活动 第一题: "225. 用队列实现栈" Leetcode 春季打卡活动 第一题: "225. 用队列实现栈" 解题思路 这里用了非常简单的思路,就是在push函数上做点操作,让队头总是最后一个元素即可。 也就是说,每新进一个新元素,就把前面的所有元素逐个弹出放到队尾即可 阅读全文
posted @ 2020-03-01 13:12 Herman·H 阅读(134) 评论(0) 推荐(0)
摘要: Leetcode: "面试题68 II. 二叉树的最近公共祖先" Leetcode: "面试题68 II. 二叉树的最近公共祖先" Talk is cheap . Show me the code . 阅读全文
posted @ 2020-02-29 18:51 Herman·H 阅读(123) 评论(0) 推荐(0)
摘要: Leetcode: "637. 二叉树的层平均值" Leetcode: "637. 二叉树的层平均值" Talk is cheap . Show me the code . 阅读全文
posted @ 2020-02-29 09:51 Herman·H 阅读(114) 评论(0) 推荐(0)
摘要: Leetcode: "面试题28. 对称的二叉树" Leetcode: "面试题28. 对称的二叉树" Talk is cheap . Show me the code . 阅读全文
posted @ 2020-02-29 09:29 Herman·H 阅读(98) 评论(0) 推荐(0)
摘要: Leetcode: "面试题55 II. 平衡二叉树" Leetcode: "面试题55 II. 平衡二叉树" Talk is cheap . Show me the code . 阅读全文
posted @ 2020-02-29 09:09 Herman·H 阅读(133) 评论(0) 推荐(1)
摘要: Leetcode: "559. N叉树的最大深度" Leetcode: "559. N叉树的最大深度" Talk is cheap . Show me the code . 阅读全文
posted @ 2020-02-28 21:30 Herman·H 阅读(124) 评论(0) 推荐(0)
摘要: Leetcode: "700. 二叉搜索树中的搜索" Leetcode: "700. 二叉搜索树中的搜索" Talk is cheap . Show me the code . 递归写法: 迭代写法: 阅读全文
posted @ 2020-02-28 21:17 Herman·H 阅读(140) 评论(0) 推荐(0)
摘要: Leetcode: "面试题 04.04. 检查平衡性" Leetcode: "面试题 04.04. 检查平衡性" Talk is cheap . Show me the code . 阅读全文
posted @ 2020-02-28 20:59 Herman·H 阅读(148) 评论(0) 推荐(0)
摘要: Leetcode: "543. 二叉树的直径" Leetcode: "543. 二叉树的直径" Talk is cheap . Show me the code . 阅读全文
posted @ 2020-02-28 20:48 Herman·H 阅读(123) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 下一页