LeetCode_en

 

| English | 简体中文 |

leetcode-logo

My LeetCode Solutions


Last updated: 2024-10-16 15:11:48

#TitleSolutionsAcceptanceDifficultyTags
120TriangleJava69.0%mediumArray, Dynamic Programming
119Pascal’s Triangle IIJava69.2%easyArray, Dynamic Programming
118Pascal’s TriangleJava76.6%easyArray, Dynamic Programming
113Path Sum IIJava63.5%mediumTree, Depth-First Search, Backtracking, Binary Tree
80Remove Duplicates from Sorted Array IIJava62.3%mediumArray, Two Pointers
74Search a 2D MatrixJava50.3%mediumArray, Binary Search, Matrix
73Set Matrix ZeroesJava68.5%mediumArray, Hash Table, Matrix
71Simplify PathJava46.1%mediumStack, String
64Minimum Path SumJava71.1%mediumArray, Dynamic Programming, Matrix
29Divide Two IntegersJava22.4%mediumBit Manipulation, Math
165Compare Version NumbersJava52.9%mediumTwo Pointers, String
474Ones and ZeroesJava66.6%mediumArray, String, Dynamic Programming
518Coin Change IIJava71.2%mediumArray, Dynamic Programming
494Target Sum❤️Java48.7%mediumArray, Dynamic Programming, Backtracking
1049Last Stone Weight IIJava71.1%mediumArray, Dynamic Programming
114Flatten Binary Tree to Linked ListJava74.5%mediumStack, Tree, Depth-First Search, Linked List, Binary Tree
109Convert Sorted List to Binary Search TreeJava76.8%mediumTree, Binary Search Tree, Linked List, Divide and Conquer, Binary Tree
86Partition ListJava65.2%mediumLinked List, Two Pointers
61Rotate ListJava41.5%mediumLinked List, Two Pointers
416Partition Equal Subset SumJava52.8%mediumArray, Dynamic Programming
96Unique Binary Search TreesJava71.3%mediumTree, Binary Search Tree, Math, Dynamic Programming, Binary Tree
343Integer BreakJava64.0%mediumMath, Dynamic Programming
63Unique Paths IIJava41.7%mediumArray, Dynamic Programming, Matrix
62Unique PathsJava68.8%mediumMath, Dynamic Programming, Combinatorics
746Min Cost Climbing StairsJava67.3%easyArray, Dynamic Programming
70Climbing StairsJava54.9%easyMemoization, Math, Dynamic Programming
509Fibonacci NumberJava65.9%easyRecursion, Memoization, Math, Dynamic Programming
1005Maximize Sum Of Array After K NegationsJava51.6%easyGreedy, Array, Sorting
45Jump Game IIJava44.5%mediumGreedy, Array, Dynamic Programming
55Jump GameJava43.5%mediumGreedy, Array, Dynamic Programming
121Best Time to Buy and Sell StockJava58.1%easyArray, Dynamic Programming
122Best Time to Buy and Sell Stock IIJava74.3%mediumGreedy, Array, Dynamic Programming
53Maximum SubarrayJava55.7%mediumArray, Divide and Conquer, Dynamic Programming
376Wiggle SubsequenceJava46.3%mediumGreedy, Array, Dynamic Programming
455Assign CookiesJava56.2%easyGreedy, Array, Two Pointers, Sorting
90Subsets IIJava63.5%mediumBit Manipulation, Array, Backtracking
47Permutations IIJava66.0%mediumArray, Backtracking
89Gray CodeJava75.4%mediumBit Manipulation, Math, Backtracking
79Word SearchJava47.7%mediumArray, String, Backtracking, Matrix
37Sudoku SolverJava68.1%hardArray, Hash Table, Backtracking, Matrix
52N-Queens IIJava82.4%hardBacktracking
51N-Queens❤️Java74.5%hardArray, Backtracking
332Reconstruct Itinerary❤️Java44.6%hardDepth-First Search, Graph, Eulerian Circuit
93Restore IP AddressesJava60.3%mediumString, Backtracking
491Non-decreasing SubsequencesJava52.1%mediumBit Manipulation, Array, Hash Table, Backtracking
90Subsets IIJava63.5%mediumBit Manipulation, Array, Backtracking
78SubsetsJava81.7%mediumBit Manipulation, Array, Backtracking
47Permutations IIJava66.0%mediumArray, Backtracking
46PermutationsJava79.8%mediumArray, Backtracking
131Palindrome PartitioningJava74.1%mediumString, Dynamic Programming, Backtracking
40Combination Sum IIJava59.6%mediumArray, Backtracking
39Combination SumJava73.2%mediumArray, Backtracking
17Letter Combinations of a Phone NumberJava60.7%mediumHash Table, String, Backtracking
216Combination Sum IIIJava71.4%mediumArray, Backtracking
77CombinationsJava77.4%mediumBacktracking
99Recover Binary Search TreeJava60.9%mediumTree, Depth-First Search, Binary Search Tree, Binary Tree
95Unique Binary Search Trees IIJava74.2%mediumTree, Binary Search Tree, Dynamic Programming, Backtracking, Binary Tree
1038Binary Search Tree to Greater Sum TreeJava83.7%mediumTree, Depth-First Search, Binary Search Tree, Binary Tree
538Convert BST to Greater TreeJava77.9%mediumTree, Depth-First Search, Binary Search Tree, Binary Tree
108Convert Sorted Array to Binary Search TreeJava79.3%easyTree, Binary Search Tree, Array, Divide and Conquer, Binary Tree
669Trim a Binary Search TreeJava67.1%mediumTree, Depth-First Search, Binary Search Tree, Binary Tree
450Delete Node in a BSTJava52.5%mediumTree, Binary Search Tree, Binary Tree
235Lowest Common Ancestor of a Binary Search TreeJava70.9%mediumTree, Depth-First Search, Binary Search Tree, Binary Tree
236Lowest Common Ancestor of a Binary TreeJava72.2%mediumTree, Depth-First Search, Binary Tree
701Insert into a Binary Search TreeJava70.0%mediumTree, Binary Search Tree, Binary Tree
501Find Mode in Binary Search TreeJava55.7%easyTree, Depth-First Search, Binary Search Tree, Binary Tree
783Minimum Distance Between BST NodesJava60.5%easyTree, Depth-First Search, Breadth-First Search, Binary Search Tree, Binary Tree
530Minimum Absolute Difference in BSTJava62.9%easyTree, Depth-First Search, Breadth-First Search, Binary Search Tree, Binary Tree
98Validate Binary Search TreeJava38.5%mediumTree, Depth-First Search, Binary Search Tree, Binary Tree
700Search in a Binary Search TreeJava78.6%easyTree, Binary Search Tree, Binary Tree
617Merge Two Binary TreesJava79.5%easyTree, Depth-First Search, Breadth-First Search, Binary Tree
654Maximum Binary TreeJava82.2%mediumStack, Tree, Array, Divide and Conquer, Binary Tree, Monotonic Stack
110Balanced Binary TreeJava58.8%easyTree, Depth-First Search, Binary Tree
106Construct Binary Tree from Inorder and Postorder TraversalJava72.5%mediumTree, Array, Hash Table, Divide and Conquer, Binary Tree
105Construct Binary Tree from Preorder and Inorder TraversalJava72.1%mediumTree, Array, Hash Table, Divide and Conquer, Binary Tree
112Path SumJava54.7%easyTree, Depth-First Search, Breadth-First Search, Binary Tree
513Find Bottom Left Tree ValueJava73.4%mediumTree, Depth-First Search, Breadth-First Search, Binary Tree
404Sum of Left LeavesJava63.3%easyTree, Depth-First Search, Breadth-First Search, Binary Tree
257Binary Tree PathsJava71.1%easyTree, Depth-First Search, String, Backtracking, Binary Tree
222Count Complete Tree NodesJava82.1%easyBit Manipulation, Tree, Binary Search, Binary Tree
101Symmetric TreeJava61.2%easyTree, Depth-First Search, Breadth-First Search, Binary Tree
226Invert Binary TreeJava81.1%easyTree, Depth-First Search, Breadth-First Search, Binary Tree
117Populating Next Right Pointers in Each Node IIJava70.4%mediumTree, Depth-First Search, Breadth-First Search, Linked List, Binary Tree
116Populating Next Right Pointers in Each NodeJava73.9%mediumTree, Depth-First Search, Breadth-First Search, Linked List, Binary Tree
111Minimum Depth of Binary TreeJava54.9%easyTree, Depth-First Search, Breadth-First Search, Binary Tree
104Maximum Depth of Binary TreeJava78.0%easyTree, Depth-First Search, Breadth-First Search, Binary Tree
515Find Largest Value in Each Tree RowJava66.5%mediumTree, Depth-First Search, Breadth-First Search, Binary Tree
429N-ary Tree Level Order TraversalJava74.0%mediumTree, Breadth-First Search
637Average of Levels in Binary TreeJava71.2%easyTree, Depth-First Search, Breadth-First Search, Binary Tree
199Binary Tree Right Side ViewJava68.1%mediumTree, Depth-First Search, Breadth-First Search, Binary Tree
107Binary Tree Level Order Traversal IIJava74.6%mediumTree, Breadth-First Search, Binary Tree
102Binary Tree Level Order TraversalJava68.3%mediumTree, Breadth-First Search, Binary Tree
347Top K Frequent ElementsJava64.1%mediumArray, Hash Table, Divide and Conquer, Bucket Sort, Counting, Quickselect, Sorting, Heap (Priority Queue)
145Binary Tree Postorder TraversalJava77.0%easyStack, Tree, Depth-First Search, Binary Tree
144Binary Tree Preorder TraversalJava72.3%easyStack, Tree, Depth-First Search, Binary Tree
94Binary Tree Inorder TraversalJava77.4%easyStack, Tree, Depth-First Search, Binary Tree
145Binary Tree Postorder TraversalJava77.0%easyStack, Tree, Depth-First Search, Binary Tree
144Binary Tree Preorder TraversalJava72.3%easyStack, Tree, Depth-First Search, Binary Tree
239Sliding Window MaximumJava49.1%hardQueue, Array, Sliding Window, Monotonic Queue, Heap (Priority Queue)
150Evaluate Reverse Polish NotationJava55.4%mediumStack, Array, Math
1047Remove All Adjacent Duplicates In StringJava72.9%easyStack, String
20Valid ParenthesesJava44.3%easyStack, String
225Implement Stack using QueuesJava65.7%easyStack, Design, Queue
232Implement Queue using StacksJava68.2%easyStack, Design, Queue
459Repeated Substring PatternJava51.9%easyString, String Matching
28Find the Index of the First Occurrence in a StringJava44.2%easyTwo Pointers, String, String Matching
796Rotate StringJava63.9%easyString, String Matching
151Reverse Words in a StringJava56.9%mediumTwo Pointers, String
541Reverse String IIJava57.6%easyTwo Pointers, String
202Happy NumberJava65.1%easyHash Table, Math, Two Pointers
349Intersection of Two ArraysJava75.0%easyArray, Hash Table, Two Pointers, Binary Search, Sorting
707Design Linked ListJava34.6%mediumDesign, Linked List
344Reverse StringJava80.5%easyTwo Pointers, String
383Ransom NoteJava65.6%easyHash Table, String, Counting
202Happy NumberJava65.1%easyHash Table, Math, Two Pointers
242Valid AnagramJava67.0%easyHash Table, String, Sorting
19Remove Nth Node From End of ListJava49.5%mediumLinked List, Two Pointers
24Swap Nodes in PairsJava73.1%mediumRecursion, Linked List
203Remove Linked List ElementsJava57.7%easyRecursion, Linked List
59Spiral Matrix IIJava70.7%mediumArray, Matrix, Simulation
2401Longest Nice SubarrayJava54.1%mediumBit Manipulation, Array, Sliding Window
76Minimum Window SubstringJava46.4%hardHash Table, String, Sliding Window
904Fruit Into BasketsJava45.4%mediumArray, Hash Table, Sliding Window
209Minimum Size Subarray SumJava46.8%mediumArray, Binary Search, Prefix Sum, Sliding Window
88Merge Sorted ArrayJava54.2%easyArray, Two Pointers, Sorting
977Squares of a Sorted ArrayJava68.7%easyArray, Two Pointers, Sorting
844Backspace String CompareJava47.9%easyStack, Two Pointers, String, Simulation
283Move ZeroesJava63.8%easyArray, Two Pointers
27Remove ElementJava60.0%easyArray, Two Pointers
367Valid Perfect SquareJava45.1%easyMath, Binary Search
69Sqrt(x)Java38.6%easyMath, Binary Search
35Search Insert PositionJava47.1%easyArray, Binary Search
2Add Two NumbersJava44.5%mediumRecursion, Linked List, Math
142Linked List Cycle IIJava59.9%mediumHash Table, Linked List, Two Pointers
141Linked List CycleJava52.9%easyHash Table, Linked List, Two Pointers
225Implement Stack using QueuesJava65.7%easyStack, Design, Queue
232Implement Queue using StacksJava68.2%easyStack, Design, Queue
503Next Greater Element IIJava68.2%mediumStack, Array, Monotonic Stack
496Next Greater Element IJava72.2%easyStack, Array, Hash Table, Monotonic Stack
503Next Greater Element IIJava68.2%mediumStack, Array, Monotonic Stack
36Valid SudokuJava63.8%mediumArray, Hash Table, Matrix
38Count and SayJava61.1%mediumString
100Same TreeJava62.3%easyTree, Depth-First Search, Breadth-First Search, Binary Tree
148Sort ListJava66.2%mediumLinked List, Two Pointers, Divide and Conquer, Sorting, Merge Sort
69Sqrt(x)Java38.6%easyMath, Binary Search
1103Distribute Candies to PeopleJava67.8%easyMath, Simulation
61Rotate ListJava41.5%mediumLinked List, Two Pointers
57Insert IntervalJava42.7%mediumArray
58Length of Last WordJava46.7%easyString
57Insert IntervalJava42.7%mediumArray
56Merge IntervalsJava50.6%mediumArray, Sorting
59Spiral Matrix IIJava70.7%mediumArray, Matrix, Simulation
54Spiral MatrixJava52.0%mediumArray, Matrix, Simulation
1221Split a String in Balanced StringsJava85.4%easyGreedy, String, Counting
50Pow(x, n)Java38.6%mediumRecursion, Math
49Group AnagramsJava68.9%mediumArray, Hash Table, String, Sorting
48Rotate ImageJava77.2%mediumArray, Math, Matrix
47Permutations IIJava66.0%mediumArray, Backtracking
46PermutationsJava79.8%mediumArray, Backtracking
45Jump Game IIJava44.5%mediumGreedy, Array, Dynamic Programming
55Jump GameJava43.5%mediumGreedy, Array, Dynamic Programming
43Multiply StringsJava44.5%mediumMath, String, Simulation
415Add StringsJava54.6%easyMath, String, Simulation
41First Missing PositiveJava45.7%hardArray, Hash Table
42Trapping Rain WaterJava64.3%hardStack, Array, Two Pointers, Dynamic Programming, Monotonic Stack
40Combination Sum IIJava59.6%mediumArray, Backtracking
39Combination SumJava73.2%mediumArray, Backtracking
35Search Insert PositionJava47.1%easyArray, Binary Search
34Find First and Last Position of Element in Sorted ArrayJava44.2%mediumArray, Binary Search
33Search in Rotated Sorted ArrayJava44.6%mediumArray, Binary Search
31Next PermutationJava40.0%mediumArray, Two Pointers
28Find the Index of the First Occurrence in a StringJava44.2%easyTwo Pointers, String, String Matching
25Reverse Nodes in k-GroupJava68.6%hardRecursion, Linked List
92Reverse Linked List IIJava56.8%mediumLinked List
206Reverse Linked ListJava75.1%easyRecursion, Linked List
24Swap Nodes in PairsJava73.1%mediumRecursion, Linked List
26Remove Duplicates from Sorted ArrayJava57.2%easyArray, Two Pointers
27Remove ElementJava60.0%easyArray, Two Pointers
23Merge k Sorted ListsJava60.6%hardLinked List, Divide and Conquer, Heap (Priority Queue), Merge Sort
17Letter Combinations of a Phone NumberJava60.7%mediumHash Table, String, Backtracking
22Generate ParenthesesJava78.2%mediumString, Dynamic Programming, Backtracking
21Merge Two Sorted ListsJava67.1%easyRecursion, Linked List
20Valid ParenthesesJava44.3%easyStack, String
19Remove Nth Node From End of ListJava49.5%mediumLinked List, Two Pointers
184SumJava36.6%mediumArray, Two Pointers, Sorting
163Sum ClosestJava44.8%mediumArray, Two Pointers, Sorting
17Letter Combinations of a Phone NumberJava60.7%mediumHash Table, String, Backtracking
153SumJava38.5%mediumArray, Two Pointers, Sorting
14Longest Common PrefixJava44.4%easyTrie, String
13Roman to IntegerJava63.5%easyHash Table, Math, String
12Integer to RomanJava67.9%mediumHash Table, Math, String
11Container With Most WaterJava60.7%mediumGreedy, Array, Two Pointers
8String to Integer (atoi)Java21.4%mediumString
7Reverse IntegerJava35.6%mediumMath
6Zigzag ConversionJava53.3%mediumString
5Longest Palindromic Substring❤️Java38.8%mediumTwo Pointers, String, Dynamic Programming
3Longest Substring Without Repeating Characters❤️Java40.3%mediumHash Table, String, Sliding Window
2Add Two NumbersJava44.5%mediumRecursion, Linked List, Math
1Two SumJava54.3%easyArray, Hash Table
2129Capitalize the TitleJava70.8%easyString
2171Removing Minimum Number of Magic BeansJava48.3%mediumGreedy, Array, Enumeration, Prefix Sum, Sorting
2719Count of IntegersJava55.1%hardMath, String, Dynamic Programming
2744Find Maximum Number of String PairsJava86.2%easyArray, Hash Table, String, Simulation
82Remove Duplicates from Sorted List IIJava54.7%mediumLinked List, Two Pointers
200Number of IslandsJava61.5%mediumDepth-First Search, Breadth-First Search, Union Find, Array, Matrix
695Max Area of IslandJava68.3%mediumDepth-First Search, Breadth-First Search, Union Find, Array, Matrix
107Binary Tree Level Order Traversal IIJava74.6%mediumTree, Breadth-First Search, Binary Tree
111Minimum Depth of Binary TreeJava54.9%easyTree, Depth-First Search, Breadth-First Search, Binary Tree
103Binary Tree Zigzag Level Order TraversalJava59.5%mediumTree, Breadth-First Search, Binary Tree
102Binary Tree Level Order TraversalJava68.3%mediumTree, Breadth-First Search, Binary Tree
101Symmetric TreeJava61.2%easyTree, Depth-First Search, Breadth-First Search, Binary Tree
100Same TreeJava62.3%easyTree, Depth-First Search, Breadth-First Search, Binary Tree
82Remove Duplicates from Sorted List IIJava54.7%mediumLinked List, Two Pointers
83Remove Duplicates from Sorted ListJava54.2%easyLinked List
141Linked List CycleJava52.9%easyHash Table, Linked List, Two Pointers
7Reverse IntegerJava35.6%mediumMath
232Implement Queue using StacksJava68.2%easyStack, Design, Queue
225Implement Stack using QueuesJava65.7%easyStack, Design, Queue
67Add BinaryJava53.5%easyBit Manipulation, Math, String, Simulation
146LRU CacheJava54.0%mediumDesign, Hash Table, Linked List, Doubly-Linked List
704Binary SearchJava55.9%easyArray, Binary Search
912Sort an ArrayJava48.6%mediumArray, Divide and Conquer, Bucket Sort, Counting Sort, Radix Sort, Sorting, Heap (Priority Queue), Merge Sort
590N-ary Tree Postorder TraversalJava79.7%easyStack, Tree, Depth-First Search
190Reverse BitsJava73.2%easyBit Manipulation, Divide and Conquer
136Single NumberJava74.4%easyBit Manipulation, Array
21Merge Two Sorted ListsJava67.1%easyRecursion, Linked List
206Reverse Linked ListJava75.1%easyRecursion, Linked List
231Power of TwoJava49.8%easyBit Manipulation, Recursion, Math
191Number of 1 BitsJava78.1%easyBit Manipulation, Divide and Conquer
3Longest Substring Without Repeating Characters❤️Java40.3%mediumHash Table, String, Sliding Window
19Remove Nth Node From End of ListJava49.5%mediumLinked List, Two Pointers
876Middle of the Linked ListJava71.5%easyLinked List, Two Pointers
557Reverse Words in a String IIIJava73.7%easyTwo Pointers, String
344Reverse StringJava80.5%easyTwo Pointers, String
167Two Sum II - Input Array Is SortedJava60.4%mediumArray, Two Pointers, Binary Search
189Rotate ArrayJava45.8%mediumArray, Math, Two Pointers
977Squares of a Sorted ArrayJava68.7%easyArray, Two Pointers, Sorting
70Climbing StairsJava54.9%easyMemoization, Math, Dynamic Programming
589N-ary Tree Preorder TraversalJava76.0%easyStack, Tree, Depth-First Search
2055Plates Between CandlesJava44.0%mediumArray, String, Binary Search, Prefix Sum
2100Find Good Days to Rob the BankJava48.7%mediumArray, Dynamic Programming, Prefix Sum
11Container With Most WaterJava60.7%mediumGreedy, Array, Two Pointers
504Base 7Java51.9%easyMath
LCR 076数组中的第 K 个最大元素Java65.1%mediumArray, Divide and Conquer, Quickselect, Sorting, Heap (Priority Queue)
239Sliding Window MaximumJava49.1%hardQueue, Array, Sliding Window, Monotonic Queue, Heap (Priority Queue)
LCR 183望远镜中最高的海拔Java44.6%hardQueue, Array, Sliding Window, Monotonic Queue, Heap (Priority Queue)
153SumJava38.5%mediumArray, Two Pointers, Sorting
258Add DigitsJava70.4%easyMath, Number Theory, Simulation
102Binary Tree Level Order TraversalJava68.3%mediumTree, Breadth-First Search, Binary Tree
101Symmetric TreeJava61.2%easyTree, Depth-First Search, Breadth-First Search, Binary Tree
9Palindrome NumberJava56.2%easyMath
LCR 172统计目标成绩的出现次数Java52.7%easyArray, Binary Search
LCR 173点名Java44.8%easyBit Manipulation, Array, Hash Table, Math, Binary Search
LCR 174寻找二叉搜索树中的目标节点Java76.4%easyTree, Depth-First Search, Binary Search Tree, Binary Tree
94Binary Tree Inorder TraversalJava77.4%easyStack, Tree, Depth-First Search, Binary Tree
LCR 175计算二叉树的深度Java79.3%easyTree, Depth-First Search, Breadth-First Search, Binary Tree
LCR 176判断是否为平衡二叉树Java59.5%easyTree, Depth-First Search, Binary Tree
110Balanced Binary TreeJava58.8%easyTree, Depth-First Search, Binary Tree
6Zigzag ConversionJava53.3%mediumString
217Contains DuplicateJava55.4%easyArray, Hash Table, Sorting
344Reverse StringJava80.5%easyTwo Pointers, String
283Move ZeroesJava63.8%easyArray, Two Pointers
237Delete Node in a Linked ListJava86.5%mediumLinked List
104Maximum Depth of Binary TreeJava78.0%easyTree, Depth-First Search, Breadth-First Search, Binary Tree
225Implement Stack using QueuesJava65.7%easyStack, Design, Queue
232Implement Queue using StacksJava68.2%easyStack, Design, Queue
977Squares of a Sorted ArrayJava68.7%easyArray, Two Pointers, Sorting
553Optimal DivisionJava64.8%mediumArray, Math, Dynamic Programming
122Best Time to Buy and Sell Stock IIJava74.3%mediumGreedy, Array, Dynamic Programming
26Remove Duplicates from Sorted ArrayJava57.2%easyArray, Two Pointers
35Search Insert PositionJava47.1%easyArray, Binary Search
278First Bad VersionJava45.7%easyBinary Search, Interactive
704Binary SearchJava55.9%easyArray, Binary Search
LCR 188买卖芯片的最佳时机Java62.6%mediumArray, Dynamic Programming
2016Maximum Difference Between Increasing ElementsJava60.0%easyArray
LCR 159库存管理 IIIJava57.8%easyArray, Divide and Conquer, Quickselect, Sorting, Heap (Priority Queue)
146LRU CacheJava54.0%mediumDesign, Hash Table, Linked List, Doubly-Linked List
LCR 158库存管理 IIJava69.8%easyArray, Hash Table, Divide and Conquer, Counting, Sorting
LCR 153二叉树中和为目标值的路径Java59.2%mediumTree, Depth-First Search, Backtracking, Binary Tree
LCR 152验证二叉搜索树的后序遍历序列Java57.0%mediumStack, Tree, Binary Search Tree, Recursion, Array, Binary Tree, Monotonic Stack
LCR 151彩灯装饰记录 IIIJava58.2%mediumTree, Breadth-First Search, Binary Tree
LCR 149彩灯装饰记录 IJava63.0%mediumTree, Breadth-First Search, Binary Tree
LCR 150彩灯装饰记录 IIJava68.7%easyTree, Breadth-First Search, Binary Tree
LCR 148验证图书取出顺序Java61.1%mediumStack, Array, Simulation
LCR 147最小栈Java55.3%easyStack, Design
LCR 146螺旋遍历二维数组Java42.1%easyArray, Matrix, Simulation
LCR 145判断对称二叉树Java57.7%easyTree, Depth-First Search, Breadth-First Search, Binary Tree
LCR 144翻转二叉树Java79.5%easyTree, Depth-First Search, Breadth-First Search, Binary Tree
LCR 142训练计划 IVJava71.8%easyRecursion, Linked List
LCR 022环形链表 IIJava55.7%mediumHash Table, Linked List, Two Pointers
141Linked List CycleJava52.9%easyHash Table, Linked List, Two Pointers
LCR 141训练计划 IIIJava74.1%easyRecursion, Linked List
141Linked List CycleJava52.9%easyHash Table, Linked List, Two Pointers
LCR 140训练计划 IIJava79.5%easyLinked List, Two Pointers
LCR 139训练计划 IJava65.0%easyArray, Two Pointers, Sorting
LCR 136删除链表的节点Java59.2%easyLinked List
LCR 135报数Java77.6%easyArray, Math
LCR 134Pow(x, n)Java35.2%mediumRecursion, Math
LCR 133位 1 的个数Java76.1%easyBit Manipulation
LCR 131砍竹子 IJava57.4%mediumMath, Dynamic Programming
LCR 128库存管理 IJava49.6%easyArray, Binary Search
153Find Minimum in Rotated Sorted ArrayJava58.0%mediumArray, Binary Search
704Binary SearchJava55.9%easyArray, Binary Search
912Sort an ArrayJava48.6%mediumArray, Divide and Conquer, Bucket Sort, Counting Sort, Radix Sort, Sorting, Heap (Priority Queue), Merge Sort
LCR 128库存管理 IJava49.6%easyArray, Binary Search
LCR 125图书整理 IIJava70.4%easyStack, Design, Queue
LCR 127跳跃训练Java45.3%easyMemoization, Math, Dynamic Programming
LCR 126斐波那契数Java35.7%easyMemoization, Math, Dynamic Programming
LCR 124推理二叉树Java70.1%mediumTree, Array, Hash Table, Divide and Conquer, Binary Tree
LCR 123图书整理 IJava73.9%easyStack, Recursion, Linked List, Two Pointers
LCR 122路径加密Java74.9%easyString
LCR 121寻找目标值 - 二维数组Java39.5%mediumArray, Binary Search, Divide and Conquer, Matrix
LCR 120寻找文件副本Java66.9%easyArray, Hash Table, Sorting
LCR 122路径加密Java74.9%easyString
240Search a 2D Matrix IIJava54.5%mediumArray, Binary Search, Divide and Conquer, Matrix
LCR 121寻找目标值 - 二维数组Java39.5%mediumArray, Binary Search, Divide and Conquer, Matrix
LCR 120寻找文件副本Java66.9%easyArray, Hash Table, Sorting
6Zigzag ConversionJava53.3%mediumString
5Longest Palindromic Substring❤️Java38.8%mediumTwo Pointers, String, Dynamic Programming
4Median of Two Sorted ArraysJava42.7%hardArray, Binary Search, Divide and Conquer
1Two SumJava54.3%easyArray, Hash Table
4Median of Two Sorted ArraysJava42.7%hardArray, Binary Search, Divide and Conquer
319Bulb SwitcherJava57.8%mediumBrainteaser, Math
66Plus OneJava46.2%easyArray, Math
350Intersection of Two Arrays IIJava57.9%easyArray, Hash Table, Two Pointers, Binary Search, Sorting
349Intersection of Two ArraysJava75.0%easyArray, Hash Table, Two Pointers, Binary Search, Sorting
189Rotate ArrayJava45.8%mediumArray, Math, Two Pointers
217Contains DuplicateJava55.4%easyArray, Hash Table, Sorting
136Single NumberJava74.4%easyBit Manipulation, Array
189Rotate ArrayJava45.8%mediumArray, Math, Two Pointers
26Remove Duplicates from Sorted ArrayJava57.2%easyArray, Two Pointers
136Single NumberJava74.4%easyBit Manipulation, Array
26Remove Duplicates from Sorted ArrayJava57.2%easyArray, Two Pointers
3Longest Substring Without Repeating Characters❤️Java40.3%mediumHash Table, String, Sliding Window
2Add Two NumbersJava44.5%mediumRecursion, Linked List, Math
1Two SumJava54.3%easyArray, Hash Table
75Sort ColorsJava61.8%mediumArray, Two Pointers, Sorting
83Remove Duplicates from Sorted ListJava54.2%easyLinked List
92Reverse Linked List IIJava56.8%mediumLinked List
206Reverse Linked ListJava75.1%easyRecursion, Linked List
70Climbing StairsJava54.9%easyMemoization, Math, Dynamic Programming
189Rotate ArrayJava45.8%mediumArray, Math, Two Pointers
Licensed under CC BY-NC-SA 4.0
最后更新于 2024-10-18