Some awesome solutions to the problems of leetcode🏃
An ordinary person solves problems in an ordinary way!😂
No | Title | Level | Remarks | Solution(s) | Url |
---|---|---|---|---|---|
33 | SearchInRotatedSortedArray | M | Java | url |
No | Title | Level | Remarks | Solution(s) | Url |
---|---|---|---|---|---|
22 | GenerateParentheses | M | Java | url |
No | Title | Level | Remarks | Solution(s) | Url |
---|---|---|---|---|---|
46 | Permutations | M | A copy of the official answer😂 | Java | url |
78 | Subsets | M | NormalRecursion ✔ Backtrack ✔ |
Java | url |
No | Title | Level | Remarks | Solution(s) | Url |
---|---|---|---|---|---|
148 | SortList | M | Merge-And-Sort | Java | url |
No | Title | Level | Remarks | Solution(s) | Url |
---|---|---|---|---|---|
53 | MaximumSubarray | E | Java | url | |
62 | UniquePaths | M | Backtrack 👎 Run timeout DP 👌 To be optimized |
Java | url |
70 | ClimbingStairs | E | Java | url |
No | Title | Level | Remarks | Solution(s) | Url |
---|---|---|---|---|---|
31 | NextPermutation | M | Java | url | |
11 | ContainerWithMostWater | M | Java | url | |
15 | ThreeSum | M | Should I call it TriplePointer?🧐 | Java | url |
16 | ThreeSumClosest | M | Java | url | |
26 | RemoveDuplicatesFromSortedArray | E | Java | url | |
88 | MergeSortedArray | E | A copy of the official answer😂 | Java | url |
141 | LinkedListCycle | E | Java | url |
No | Title | Level | Remarks | Solution(s) | Url |
---|---|---|---|---|---|
1 | TwoSum | E | Java | url | |
142 | LinkedListCycle_2 | M | Set ✔ Floyd ❌ |
Java | url |
169 | MajorityElement | E | Hash | Java | url |
No | Title | Level | Remarks | Solution(s) | Url |
---|---|---|---|---|---|
146 | LRUCache | M | Implement of Redis LRU | Java | url |
No | Title | Level | Remarks | Solution(s) | Url |
---|---|---|---|---|---|
2 | AddTwoNumbers | M | Java | url | |
21 | MergeTwoSortedLists | E | I use loops instead of recursion | Java | url |
23 | MergeKSortedLists | H | Solutions: divide and conquer ✔ PriorityQueue ❌Not yet completed |
Java | url |
61 | RotateList | M | Solutions: Stack ✔ Annular LinkList ✔ |
Java | url |
160 | IntersectionOfTwoLinkedLists | E | Java | url | |
206 | ReverseLinkedList | E | Stack ✔ Loop ✔ Recursion 🤔 it's hard to figure out |
Java | url |
No | Title | Level | Remarks | Solution(s) | Url |
---|---|---|---|---|---|
3 | LongestSubstringWithoutRepeatingCharacters | M | To be optimized | Java | url |
No | Title | Level | Remarks | Solution(s) | Url |
---|---|---|---|---|---|
5 | LongestPalindromicSubstring | M | It's better to use "Manacher" method | Java | url |
8 | StringToIntegerAtoi | M | Only use the method that made from multiple "if"😂.Maybe using regular expression is the best solution! | Java | url |
14 | LongestCommonPrefix(LCP) | E | Java | url | |
43 | MultiplyStrings | M | Not yet completed ❌ | Java | url |
No | Title | Level | Remarks | Solution(s) | Url |
---|---|---|---|---|---|
7 | ReverseInteger | E | Java | url | |
9 | PalindromeNumber | E | Java | url |
No | Title | Level | Remarks | Solution(s) | Url |
---|---|---|---|---|---|
20 | ValidParentheses | E | Java | url | |
155 | MinStack | E | impl a MinStack | Java | url |
No | Title | Level | Remarks | Solution(s) | Url |
---|---|---|---|---|---|
54 | SpiralMatrix | M | That's fun! It reminds me of the time when I was making games | Java | url |
59 | SpiralMatrix_2 | M | Similar to the 👆 line | Java | url |
No | Title | Level | Remarks | Solution(s) | Url |
---|---|---|---|---|---|
100 | SameTree | E | Recursive traversal | Java | url |
101 | SymmetricTree | E | Recursion✔ Queue✔ |
Java | url |
104 | MaximumDepthOfBinaryTree | E | DFS✔ BFS ✔ |
Java | url |
124 | BinaryTreeMaximumPathSum | H | DFS | Java | url |
No | Title | Level | Remarks | Solution(s) | Url |
---|---|---|---|---|---|
121 | BestTimeToBuyAndSellStock | E | It's solved by using only one loop | Java | url |
122 | BestTimeToBuyAndSellStock_2 | E | Java | url |
No | Title | Level | Remarks | Solution(s) | Url |
---|---|---|---|---|---|
136 | SingleNumber | E | Java | url |
No | Title | Level | Remarks | Solution(s) | Url |
---|---|---|---|---|---|
200 | NumberOfIslands | M | BFS✔ DFS✔ |
Java | url |