Skip to content

Latest commit

 

History

History
590 lines (543 loc) · 18.7 KB

README.md

File metadata and controls

590 lines (543 loc) · 18.7 KB

leetcode算法题目


目前题目java,python实现,按照题目类型不断补充,类型主要分为:array,list,string,hashtable,math,tree:

代码的博客地址: https://blog.csdn.net/zy345293721

其中加*表示花了很长时间!题目没有进行分类,后期将对题目整理分类!

1.array

题号 题目内容 题目难度
733 Flood Fill Easy
240 Search 2D Easy
57 Insert Interval Middle
42 Trapping Rain Water Hard
84 Largest Rectangle in Histogram Hard
*152 Maximum Product Subarray Middle
85 Maximal Rectangle Hard
322 Coin Change Middle
621 Task Scheduler Middle
221 Maximal Square Middle
279 Perfect Squares Middle
62 Unique Paths Middle
11 Container With Most Water Middle
287 Find the Duplicate Number Middle
*128 Longest Consecutive Sequence Middle
*215 Kth Largest Element in an Array Middle
*55 Jump Game Middle
300 Longest Increasing Subsequence Middle
*64 Minimum Path Sum Middle
56 Merge Intervals Middle
72 Edit Distance Middle
39 Combination Sum Middle
200 Number of Islands Middle
560 Subarray Sum Equals K Middle
406 Queue Reconstruction by Height Middle
416 Partition Equal Subset Sum Middle
4 Median of Two Sorted Arrays Middle
121 Best Time to Buy and Sell Stock Easy
581 Shortest Unsorted Continuous Subarray Easy
70 Climbing Stairs Easy
437 Path Sum III Middle
*198 House Robber Easy
2 Add Two Numbers Easy
15 Three Sum Easy
448 Find All Numbers Disappeared in an Array Middle
283 Move Zeroes Easy
169 Majority Element Easy
494 Target Sum Easy
349 Intersection of Two Arrays Easy
350 Intersection of Two Arrays II Easy
136 Single Number Easy
7 Reverse Integer Easy
347 Top K Frequent Elements Easy
35 Search Insert Position Easy
*268 Missing Number Easy
*521 Longest Uncommon Subsequence I Easy
217 Contains Duplicate Easy
728 Self Dividing Numbers Easy
122 Best Time Buy Easy
1217 Play With Chips Easy
26 Remove Duplicates from Sorted Array Easy
53 Maximum Subarray Easy

2.list

题号 题目内容 题目难度
114 Flatten Binary Tree to Linked List Middle
23 Merge k Sorted Lists Middle
*142 Linked List Cycle II Middle
160 Intersection of Two Linked Lists Easy
234 Palindrome Linked List Easy
155 Min Stack Easy
148 Sort List Easy
21 Merge Two Sorted Lists Easy
206 Reverse Linked List Easy
141 Linked List Cycle Easy
19 Remove Nth Node From End of List Easy

3.string

题号 题目内容 题目难度
32 Longest Valid Parentheses Hard
*22 Generate Parentheses Middle
49 Group Anagrams Middle
139 Word Break Middle
*5 Longest Palindromic Substring Easy
394 Decode String Middle
3 Longest Substring Without Repeating Characters Easy
917 Reverse Only Letters Easy
520 Detect Capital Easy
541 Reverse String II Easy
66 Plus one Easy
647 Palindromic Substrings Easy
438 Find All Anagrams in a String Easy
67 Add Binary Easy

4.hashtable

题号 题目内容 题目难度
1 Two Sum Easy
3 Pairs Of Parentheses Middle
48 Rotate Image Middle
461 Hamming Distance Easy
771 Jewels and Stones Easy
167 Two Sum II - Input array is sorted Easy

5.math

题号 题目内容 题目难度
258 Add Digits Easy
1154 Day Of Year Easy

6.tree

题号 题目内容 题目难度
94 Binary Tree Inorder Traversal Easy
144 Binary Tree PreOrder Traversal Middle
145 Binary Tree Post Order Traversal Middle
236 Lowest Common Ancestor of a Binary Tree Middle
*337 House Robber III Middle
102 Binary Tree Level Order Traversal Middle
94 Binary Tree Inorder Traversal Middle
538 Convert BST to Greater Tree Easy
572 Subtree of Another Tree Easy
543 Diameter of Binary Tree Easy
101 Symmetric Tree Easy
226 Invert Binary Tree Easy
104 Maximum Depth of Binary Tree Easy
617 Merge Two Binary Trees Easy
*606 Construct String from Binary Tree Easy