java-leet-code
持续更新leet-code题解
explore(30)
| # | Title | Tag |
|---|---|---|
| 001 | Two Sum | Array HashTable |
| 007 | Reverse Integer | String |
| 008 | String to Integer | String Array |
| 014 | Longest Common Prefix | String Array |
| 019 | Remove Nth Node From End of List | LinkedList |
| 021 | Merge Two Sorted Lists | LinkedList |
| 026 | Remove Duplicates from Sorted Array | Array |
| 028 | Implement strStr | String Array |
| 036 | Valid Sudoku | Array HashSet |
| 048 | Rotate Image | Array |
| 065 | Plus One | Array |
| 088 | Merge Sorted Array | Array Sorted |
| 098 | Validate Binary Search Tree | Tree |
| 101 | Symmetric Tree | Tree |
| 102 | Binary Tree Level Order Traversal | Tree |
| 104 | Maximum Depth of Binary Tree | Tree |
| 108 | Convert Sorted Array to Binary Search Tree | Tree |
| 122 | Best Time to Buy and Sell Stock II | Array |
| 125 | Valid Palindrome | String Array |
| 136 | Single Number | Array |
| 141 | Linked List Cycle | LinkedList |
| 189 | Rotate Array | Array |
| 206 | Reverse a singly linked list | LinkedList |
| 217 | Contains Duplicate | Array |
| 234 | Palindrome Linked List | LinkedList |
| 237 | Delete Node in a Linked List | LinkedList |
| 242 | Valid Anagram | String Array |
| 278 | First Bad Version | Array |
| 283 | Move Zeroes | Array |
| 344 | Reverse String | String |
| 387 | First Unique Character in a String | String HashTable |
easy(15)
| # | Title | Tag |
|---|---|---|
| 035 | Search Insert Position | Array HashTable |
| 069 | Sqrt(x) | Binary Search |
| 083 | Remove Duplicates from Sorted List | Linked List |
| 160 | Intersection of Two Linked Lists | Linked List |
| 167 | Two Sum II - Input array is sorted | Array HashTable |
| 203 | Remove Linked List Elements | Linked List |
| 349 | Intersection of Two Arrays | HashTable BinarySearch |
| 350 | Intersection of Two Arrays II | Array Sort |
| 367 | Valid Perfect Square | Binary Search |
| 374 | Guess Number Higher or Lower | Binary Search |
| 441 | Arranging Coins | Math |
| 530 | Minimum Absolute Difference in BST | Tree |
| 744 | Find Smallest Letter Greater Than Target | Array HashTable |
| 783 | Minimum Distance Between BST Nodes | Tree |
| 852 | Peak Index in a Mountain Array | Binary Search |
medium(7)
| # | Title | Tag |
|---|---|---|
| 153 | Find Minimum in Rotated Sorted Array | Binary Search |
| 162 | Find Peak Element | Binary Search |
| 230 | Kth Smallest Element in a BST | Binary Search |
| 240 | Search a 2D Matrix II | |
| 392 | Is Subsequence | Two pointer |
| 436 | Find Right Interval | Hash Table |
| 454 | 4Sum II | Hash Table |
| 725 | Split Linked List in Parts | Linked List |
| 729 | My Calendar I | Tree |
| 731 | My Calendar II | Tree |
hard(1)
| # | Title | Tag |
|---|---|---|
| 732 | My Calendar III | Tree |
项目源码,欢迎star:https://github.com/mcrwayfun/java-leet-code


1701

被折叠的 条评论
为什么被折叠?



