IncredibleThings

导航

2016年5月6日 #

LeetCode-Symmetric Tree

摘要: 递归解法: 其中左子树和右子树对称的条件: 阅读全文

posted @ 2016-05-06 02:25 IncredibleThings 阅读(137) 评论(0) 推荐(0) 编辑

2016年5月5日 #

LeetCode-Same Tree

摘要: 树的遍历很有可能要转化为递归的思路 阅读全文

posted @ 2016-05-05 01:45 IncredibleThings 阅读(105) 评论(0) 推荐(0) 编辑

LeetCode-Merge Sorted Array

摘要: 这种merge两个List的题目。除了可以从头往后merge,也可以从后往前merge 阅读全文

posted @ 2016-05-05 01:31 IncredibleThings 阅读(120) 评论(0) 推荐(0) 编辑

2016年5月4日 #

LeetCode-Remove Duplicates from Sorted List

摘要: 这道题考察链表的操作,不难 阅读全文

posted @ 2016-05-04 23:51 IncredibleThings 阅读(122) 评论(0) 推荐(0) 编辑

LeetCode-Climbing Stairs

摘要: 这道题可以用 recursive或者DP做,但是recursive 的效率太低了。 阅读全文

posted @ 2016-05-04 23:25 IncredibleThings 阅读(107) 评论(0) 推荐(0) 编辑

LeetCode-Add Binary

摘要: 这道题不难,注意分清情况。 阅读全文

posted @ 2016-05-04 05:56 IncredibleThings 阅读(111) 评论(0) 推荐(0) 编辑

LeetCode-Plus One

摘要: 这道题考察数字进位,注意考虑溢出情况。 阅读全文

posted @ 2016-05-04 04:20 IncredibleThings 阅读(124) 评论(0) 推荐(1) 编辑

LeetCode-Length of Last Word

摘要: 这道题比较简单,逻辑清楚就行。 阅读全文

posted @ 2016-05-04 03:43 IncredibleThings 阅读(108) 评论(0) 推荐(0) 编辑

2016年5月3日 #

LeetCode-Count and Say

摘要: 一道facebook的面试题,注意化繁为简。 阅读全文

posted @ 2016-05-03 08:07 IncredibleThings 阅读(121) 评论(0) 推荐(0) 编辑

LeetCode-Implement strStr()

摘要: 有一种KMP算法,不过实现起来比较复杂,这里直接用暴力解法 阅读全文

posted @ 2016-05-03 03:30 IncredibleThings 阅读(89) 评论(0) 推荐(0) 编辑