- 博客(19)
- 资源 (2)
- 收藏
- 关注
原创 LeetCode Week18: Sicily Test
这周完成的是老师给定的期末考试模拟题,这里也选择把这些题目的题解写出来,回顾一下这学期的知识点。
2017-06-25 00:35:30 338
原创 LeetCode Week17: Student Attendace Record II
这一周完成的是Student Attendance Record系列的题目,其中第一题是关于string的使用,这里不再详细介绍其内容,第二题是关于Dynamic Programming的题目,本次题解将介绍第二题的解答过程。
2017-06-19 22:36:50 323
原创 LeetCode Week16: Word Ladder II
这里接着上一周完成的题目,写的是Word Ladder II,同样还是一道BFS的题。
2017-06-11 11:33:55 314
原创 LeetCode Week15: Word Ladder I
这周完成的题目是与BFS相关的两道题目: Word Ladder 和Word Ladder II,但是因为word LadderII那道题卡住了(至今还是RE )TT,所以这周的题解先分析Word Ladder I。
2017-06-06 23:42:57 245
原创 LeetCode Week14: Longest Valid Parentheses
这周实现的还是Dynamic Programming的代码,这里选择一道比较经典的题目Longest Valid Parentheses来完成题解。
2017-05-28 21:47:11 285
原创 LeetCode Week13: Word Break系列
这周完成的还是Dynamic Programming 部分的题目,这里选择word break系列的两道题目进行分析。
2017-05-21 18:02:41 279
原创 LeetCode Week12: Best Time to Buy and Sell Stock系列
本周完成的习题依然是Dynamic Programming系列的题目,这里选择Best Time to Buy and Sell Stock系列的五道题目进行分析。
2017-05-14 11:49:04 280
原创 LeetCode Week10: Edit Distance, Unique Binary Search Tree(I & II)
这一周完成的主要是动态规划的题目,这里选择Edit Distance 和Unique Binary Search Tree(I & II)来分享题解。
2017-04-30 11:21:24 279
原创 LeetCode Week9: Binary Tree Preorder/InOrder/PostOrder Traversal
这一周完成的题目主要是Tree部分的题目,这里选择3道经典的题来编写题解,分别是Binary Tree Preorder Traversal、Binary Tree Inorder Traversal、Binary Tree Postorder Traversal。
2017-04-23 10:34:11 276
原创 LeetCode Week7: Jump Game&Jump GameII、Patching Arrays
本周LeetCode完成的题目是三道,分别是Jump Game和Jump GameII和Patching Array。
2017-04-08 17:29:49 206
原创 LeetCode Week5:Recover Binary Search Tree、Binary Tree Maximum Path Sum
本周主要完成的是与DFS相关的题目,一道是Recover Binary Search Tree,另一道是Binary Tree Maximum Path Sum
2017-03-26 11:32:50 232
原创 LeetCode Week4:Count of Smaller Numbers After Self
这一周完成了几道DFS的题目(Path Sum等),但主要还是用二分查找/树状数组解决了一道Hard的题:Count of Smaller Numbers After Self。一、Count of Smaller Numbers After Self题目描述 :You are given an integer array nums and you have to return a new coun
2017-03-19 16:38:41 324
原创 LeetCode Week3: Different Ways to Add Parentheses、Expression Add Operators
这一周主要实现的还是Divide-and-Conquer部分的题目,但是有一题也涉及到了深度优先搜索,两道题目分别是Different Ways to Add Parentheses、Expression Add Operators。
2017-03-12 19:52:35 352
原创 LeetCode Week2: Maximum Subarray、Merge k Sorted Lists
这周主要实现了LeetCode Algorithms中的Divide-And-Conquer的题目,这里选择二道题来分析,分别是Maximum Subarray(easy)、Merge k Sorted Lists(Hard)。一、Maximum Subarray题目描述:Find the contiguous subarray within an array (containing at leas
2017-03-05 11:48:50 283
原创 LeetCode Week1: Two Sum、Add Two Numbers、Median of Two Sorted Arrays
这一周实现了LeetCode Algorithms中的1、2、4题,分别是Two Sum(easy)、Add Two Numbers(medium)、Median of Two Sorted Arrays(Hard)。一、Two Sum题目描述:Given an array of integers, return indices of the two numbers such that they a
2017-02-25 21:37:34 298
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人