博客地址:https://www.liuchuo.net/ ID Title Difficulty Java Python C++ Swift 001 Two Sum Easy Java Python C++ no 002 Add Two Numbers Medium Java Python C++ no 003 Longest Substring Without Repeating Characters Medium Java Python C++ no 004 Median of Two Sorted Arrays Hard 005 Longest Palindromic Substring Medium no no C++ no 010 Regular Expression Matching Hard Java no no no 011 Container With Most Water Medium Java no C++ no 015 3Sum Medium Java Python C++ no 017 Letter Combinations of a Phone Number Medium Java Python C++ no 019 Remove Nth Node From End of List Easy Java Python C++ no 020 Valid Parentheses Easy Java no C++ Swift 021 Merge Two Sorted Lists Easy Java Python C++ Swift 022 Generate Parentheses Medium Java Python C++ no 023 Merge k Sorted Lists Hard Java Python no Swift 032 Longest Valid Parentheses Hard Java no no no 033 Search in Rotated Sorted Array Medium Java no C++ no 034 Search for a Range Medium Java Python C++ no 035 Search Insert Position Medium Java Python C++ Swift 039 Combination Sum Medium Java Python C++ no 042 Trapping Rain Water Hard Java no C++ no 046 Permutations Medium Java Python C++ no 048 Rotate Image Medium Java Python C++ no 049 Group Anagrams Medium Java Python C++ Swift 053 Maximum Subarray Medium Java Python C++ no 055 Jump Game Medium Java Python C++ no 056 Merge Intervals Medium Java no C++ no 062 Unique Paths Medium Java Python C++ Swift 064 Minimum Path Sum Medium Java Python C++ no 070 Climbing Stairs Easy Java Python C++ Swift 072 Edit Distance Hard Java Python no no 075 Sort Colors Medium Java Python C++ Swift 076 Minimum Window Substring Hard 078 Subsets Medium Java Python C++ no 079 Word Search Medium Java no no no 084 Largest Rectangle in Histogram Hard 085 Maximal Rectangle Hard 094 Binary Tree Inorder Traversal Medium Java Python C++ Swift 096 Unique Binary Search Trees Medium Java Python C++ Swift 098 Validate Binary Search Tree Medium Java Python C++ Swift 100 Same Tree Easy Java Python C++ Swift 101 Symmetric Tree Easy Java Python C++ Swift 102 Binary Tree Level Order Traversal Easy Java Python C++ Swift 104 Maximum Depth of Binary Tree Easy Java Python C++ Swift 105 Construct Binary Tree from Preorder and Inorder Traversal Medium Java Python no no 114 Flatten Binary Tree to Linked List Medium Java Python no Swift 121 Best Time to Buy and Sell Stock Easy Java no C++ Swift 124 Binary Tree Maximum Path Sum Hard Java no no no 128 Longest Consecutive Sequence Hard Java no no no 136 Single Number Easy 139 Word Break Medium Java no no no 141 Linked List Cycle Easy Java Python C++ no 142 Linked List Cycle II Medium Java Python C++ no 146 LRU Cache Hard Java Python no no 148 Sort List Medium Java Python no Swift 152 Maximum Product Subarray Medium Java no C++ Swift 155 Min Stack Easy Java no C++ no 160 Intersection of Two Linked Lists Easy Java Python C++ no 169 Majority Element Easy Java Python C++ Swift 198 House Robber Easy Java Python C++ Swift 200 Number of Islands Medium Java Python C++ no 206 Reverse Linked List Easy Java Python C++ Swift 207 Course Schedule Medium no no no no 208 Implement Trie (Prefix Tree) Medium Java no no no 215 Kth Largest Element in an Array Medium Java Python C++ Swift 218 Subarray Sum Equals K Hard 221 Maximal Square Medium Java no no no 226 Invert Binary Tree Easy Java Python C++ no 234 Palindrome Linked List Easy Java no C++ Swift 236 Lowest Common Ancestor of a Binary Tree Medium Java Python no no 238 Product of Array Except Self Medium Java Python C++ Swift 239 Sliding Window Maximum Hard Java Python no no 240 Search a 2D Matrix II Medium Java no C++ no 279 Perfect Squares Medium Java no C++ no 283 Move Zeroes Easy Java Python C++ Swift 287 Find the Duplicate Number Hard Java Python no Swift 297 Serialize and Deserialize Binary Tree Hard Java no no no 300 Longest Increasing Subsequence Medium Java no C++ no 309 Best Time to Buy and Sell Stock with Cooldown Medium Java no no no 312 Burst Balloons Hard no no no no 322 Coin Change Medium Java no C++ no 337 House Robber III Medium Java Python no no 338 Counting Bits Medium Java Python C++ Swift 347 Top K Frequent Elements Medium Java Python C++ Swift 394 Decode String Medium Java no no Swift 406 Queue Reconstruction by Height Medium Java no C++ no 416 Partition Equal Subset Sum Medium Java no no no 437 Path Sum III Easy no no C++ Swift 438 Find All Anagrams in a String Easy no no C++ Swift 448 Find All Numbers Disappeared in an Array Easy no no C++ Swift 461 Hamming Distance Easy no no C++ Swift 494 Target Sum Medium no no C++ no 538 Convert BST to Greater Tree Easy no no C++ Swift 543 Diameter of Binary Tree Easy no no C++ Swift 560 Subarray Sum Equals K Medium 572 Subtree of Another Tree Easy no no C++ Swift 581 Shortest Unsorted Continuous Subarray Easy no no C++ Swift 617 Merge Two Binary Trees Easy no no no Swift 621 Task Scheduler Medium 647 Palindromic Substrings Medium 695 Max Area of Island Easy no no C++ Swift