Skip to content

worldlightyjx/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

LeetCode solution and explanation

ID Title Difficulty Tag Java
1 Two Sum Others Solution
3 Longest Substring Without Repeating Characters Sliding Window Solution
11 Container With Most Water Others Solution
19 Remove Nth Node From End of List Linked List Solution
33 Search in Rotated Sorted Array Binary Search Solution
34 Find First and Last Position of Element in Sorted Array Binary Search Solution
48 Rotate Image Array Solution
53 Maximum Subarray Array Solution
61 Rotate List Linked List Solution
69 Sqrt(x) Binary Search Solution
74 Search a 2D Matrix Binary Search Solution
79 Word Search Backtracing Solution
81 Search in Rotated Sorted Array II Binary Search Solution
92 Reverse Linked List II Linked List Solution
99 Recover Binary Search Tree BST Solution
100 Same Tree BST Solution
104 Maximum Depth of Binary Tree BST Solution
118 Pascal's Triangle Others Solution
119 Pascal's Triangle II Others Solution
121 Best Time to Buy and Sell Stock Dynamic Programming Solution
122 Best Time to Buy and Sell Stock II Dynamic Programming Solution
123 Best Time to Buy and Sell Stock III Dynamic Programming Solution
131 Palindrome Partitioning Backtracing Solution
138 Copy List with Random Pointer Linked List Solution
141 Linked List Cycle Linked List Solution
142 Linked List Cycle II Linked List Solution
143 Reorder List Linked List Solution
146 LRU Cache Linked List Solution
149 Max Points on a Line Math Solution
150 Evaluate Reverse Polish Notation Stack Solution
152 Maximum Product Subarray Array Solution
154 Find Minimum in Rotated Sorted Array II Binary Search Solution
166 Fraction to Recurring Decimal Math Solution
171 Excel Sheet Column Number Math Solution
172 Factorial Trailing Zeroes Math Solution
179 Largest Number Greedy Solution
190 Reverse Bits Bit Manipulation Solution
199 Binary Tree Right Side View BST Solution
202 Happy Number Math Solution
204 Count Primes Math Solution
206 Reverse Linked List Linked List Solution
209 Minimum Size Subarray Sum Sliding Window Solution
212 Word Search II Backtracing Solution
222 Count Complete Tree Nodes Others Solution
223 Rectangle Area Array Solution
227 Basic Calculator II Stack Solution
234 Palindrome Linked List Linked List Solution
235 Lowest Common Ancestor of a Binary Search Tree BST Solution
237 Delete Node in a Linked List Linked List Solution
238 Product of Array Except Self Array Solution
239 Sliding Window Maximum Deque Solution
242 Valid Anagram HashMap Solution
273 Integer to English Words Others Solution
275 H-Index II Binary Search Solution
278 First Bad Version Binary Search Solution
289 Game of Life Array Solution
344 Reverse String Two Pointer Solution
347 Top K Frequent Elements HashMap Solution
378 Kth Smallest Element in a Sorted Matrix Binary Search Solution
394 Decode String Stack Solution
395 Longest Substring with At Least K Repeating Characters Two Pointer Solution
400 Nth Digit Binary Search Solution
416 Partition Equal Subset Sum Dynamic Programming Solution
424 Longest Repeating Character Replacement Sliding Window Solution
475 Heaters Binary Search Solution
567 Permutation in String Sliding Window Solution
572 Subtree of Another Tree BST Solution
662 Maximum Width of Binary Tree BST Solution
714 Best Time to Buy and Sell Stock with Transaction Fee Dynamic Programming Solution
739 Daily Temperatures Stack Solution
763 Partition Labels HashMap Solution
771 Jewels and Stones Others Solution
904 Fruit Into Baskets Sliding Window Solution
994 Rotting Oranges Searching Solution
1004 Max Consecutive Ones III Sliding Window Solution
1114 Print in Order multithreading Solution
2055 Plates Between Candles Binary Search Solution
2272 Substring With Largest Variance Dynamic Programming Solution
295 Find Median from Data Stream Heap Solution

About

LeetCode solution and explanation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages