Skip to content

emfomy/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

LeetCode Problems' Solutions

Problems

# Title Solution Difficulty
1 Two Sum C++ Go Python Easy
2 Add Two Numbers C++ Go Python Medium
3 Longest Substring Without Repeating Characters C++ Go Python Medium
4 Median of Two Sorted Arrays C++ Go Python Hard
5 Longest Palindromic Substring Go Python Medium
6 ZigZag Conversion Go Python Medium
7 Reverse Integer Python Easy
8 String to Integer (atoi) Python Medium
9 Palindrome Number Python Easy
10 Regular Expression Matching Python Hard
11 Container With Most Water Python Medium
12 Integer to Roman Python Medium
13 Roman to Integer Go Python Easy
14 Longest Common Prefix Python Easy
15 3Sum Python Medium
16 3Sum Closest Python Medium
17 Letter Combinations of a Phone Number Python Medium
18 4Sum Python Medium
19 Remove Nth Node From End of List Python Medium
20 Valid Parentheses Python Easy
21 Merge Two Sorted Lists Python Easy
22 Generate Parentheses Python Medium
23 Merge k Sorted Lists Python Hard
24 Swap Nodes in Pairs Python Medium
29 Divide Two Integers Go Medium
30 Substring with Concatenation of All Words Go Hard
32 Longest Valid Parentheses Python Hard
33 Search in Rotated Sorted Array C++ Python Medium
34 Find First and Last Position of Element in Sorted Array C++ Go Medium
39 Combination Sum Go Python Medium
40 Combination Sum II Go Medium
41 First Missing Positive Python Hard
42 Trapping Rain Water Go Python Hard
45 Jump Game II Go Python Hard
46 Permutations Python Medium
48 Rotate Image Python Medium
49 Group Anagrams Go Python Medium
51 N-Queens Go Hard
52 N-Queens II Go Hard
53 Maximum Subarray Go Python Easy
55 Jump Game Go Python Medium
56 Merge Intervals Python Medium
62 Unique Paths Go Python Medium
63 Unique Paths II Go Medium
64 Minimum Path Sum Go Python Medium
70 Climbing Stairs Go Python Easy
72 Edit Distance Go Python Hard
75 Sort Colors Go Python Medium
78 Subsets Go Python Medium
79 Word Search Python Medium
84 Largest Rectangle in Histogram Python Hard
85 Maximal Rectangle Python Hard
86 Partition List Go Medium
88 Merge Sorted Array Go Easy
91 Decode Ways Go Medium
92 Reverse Linked List II Go Medium
94 Binary Tree Inorder Traversal Python Medium
95 Unique Binary Search Trees II Go Medium
96 Unique Binary Search Trees Go Python Medium
97 Interleaving String Go Medium
98 Validate Binary Search Tree Go Python Medium
101 Symmetric Tree Python Easy
102 Binary Tree Level Order Traversal Go Python Medium
104 Maximum Depth of Binary Tree Go Python Easy
105 Construct Binary Tree from Preorder and Inorder Traversal Go Python Medium
108 Convert Sorted Array to Binary Search Tree Go Easy
114 Flatten Binary Tree to Linked List Go Python Medium
118 Pascal's Triangle Go Easy
119 Pascal's Triangle II Go Easy
120 Triangle Go Medium
121 Best Time to Buy and Sell Stock Go Python Easy
122 Best Time to Buy and Sell Stock II Go Medium
126 Word Ladder II Go Hard
128 Longest Consecutive Sequence Go Medium
135 Candy Go Hard
137 Single Number II Go Medium
139 Word Break Go Medium
152 Maximum Product Subarray Go Medium
160 Intersection of Two Linked Lists Go Easy
165 Compare Version Numbers Go Medium
167 Two Sum II - Input Array Is Sorted Go Medium
191 Number of 1 Bits C++ Go Easy
198 House Robber Go Medium
199 Binary Tree Right Side View Go Medium
202 Happy Number Go Easy
206 Reverse Linked List Go Easy
207 Course Schedule Go Medium
210 Course Schedule II Go Medium
213 House Robber II Go Medium
215 Kth Largest Element in an Array C++ Go Medium
216 Combination Sum III Go Medium
217 Contains Duplicate Go Easy
221 Maximal Square Go Medium
232 Implement Queue using Stacks Go Easy
235 Lowest Common Ancestor of a Binary Search Tree Go Easy
236 Lowest Common Ancestor of a Binary Tree Go Medium
237 Delete Node in a Linked List Go Medium
240 Search a 2D Matrix II Go Medium
242 Valid Anagram Go Easy
263 Ugly Number Go Easy
264 Ugly Number Go Easy
268 Missing Number Go Easy
279 Perfect Squares Go Medium
283 Move Zeroes Go Easy
300 Longest Increasing Subsequence Go Medium
303 Range Sum Query - Immutable Go Easy
304 Range Sum Query 2D - Immutable Go Medium
307 Range Sum Query - Immutable Go Easy
309 Best Time to Buy and Sell Stock with Cooldown Go Medium
315 Count of Smaller Numbers After Self Go Hard
318 Maximum Product of Word Lengths Go Easy
322 Coin Change Go Medium
326 Power of Three Go Easy
330 Patching Array Go Hard
343 Integer Break Go Medium
376 Wiggle Subsequence Go Medium
377 Combination Sum IV Go Medium
378 Kth Smallest Element in a Sorted Matrix Go Medium
380 Insert Delete GetRandom O(1) Go Medium
383 Ransom Note Go Easy
387 Roman to Integer Go Easy
389 Find the Difference Go Easy
392 Is Subsequence Go Easy
404 Sum of Left Leaves Go Easy
406 Queue Reconstruction by Height Go Medium
413 Arithmetic Slices Go Medium
458 Poor Pigs Go Hard
462 Minimum Moves to Equal Array Elements II Go Medium
473 Matchsticks to Square Go Medium
496 Next Greater Element I Go Easy
506 Relative Ranks Go Easy
509 Fibonacci Number Go Easy
516 Longest Palindromic Subsequence Go Medium
518 Coin Change 2 Go Medium
566 Reshape the Matrix Go Easy
576 Out of Boundary Paths Go Medium
583 Delete Operation for Two Strings Go Medium
589 N-ary Tree Preorder Traversal Go Easy
629 K Inverse Pairs Array Go Hard
630 Course Schedule III Go Hard
633 Sum of Square Numbers Go Medium
665 Non-decreasing Array Go Medium
695 Max Area of Island Go Medium
709 To Lower Case Go Easy
714 Best Time to Buy and Sell Stock with Transaction Fee Go Medium
729 My Calendar I Go Medium
740 Delete and Earn Go Medium
745 Prefix and Suffix Search Go Hard
746 Min Cost Climbing Stairs Go Easy
792 Number of Matching Subsequences Go Medium
804 Unique Morse Code Words Go Easy
820 Short Encoding of Words Go Medium
823 Binary Trees With Factors Go Medium
834 Sum of Distances in Tree Go Hard
858 Mirror Reflection Go Medium
867 Transpose Matrix Go Python Easy
876 Middle of the Linked List Go Easy
881 Boats to Save People Go Medium
890 Find and Replace Pattern Go Medium
916 Word Subsets Go Medium
918 Maximum Sum Circular Subarray Go Medium
931 Minimum Falling Path Sum Go Medium
945 Minimum Increment to Make Array Unique Go Medium
953 Verifying an Alien Dictionary Go Easy
968 Binary Tree Cameras Go Hard
976 Largest Perimeter Triangle Go Easy
1014 Best Sightseeing Pair Go Medium
1026 Determine if String Halves Are Alike Go Medium
1048 Longest String Chain Go Medium
1074 Number of Submatrices That Sum to Target Go Hard
1122 Relative Sort Array Go Easy
1137 N-th Tribonacci Number Go Easy
1143 Longest Common Subsequence Go Medium
1207 Unique Number of Occurrences Go Easy
1220 Count Vowels Permutation Go Hard
1232 Check If It Is a Straight Line Go Easy
1255 Maximum Score Words Formed by Letters Go Hard
1268 Search Suggestions System Go Medium
1281 Subtract the Product and Sum of Digits of an Integer Go Easy
1289 Minimum Falling Path Sum II Go Hard
1290 Convert Binary Number in a Linked List to Integer Go Easy
1309 Decrypt String from Alphabet to Integer Mapping Go Easy
1314 Matrix Block Sum Go Medium
1332 Remove Palindromic Subsequences Go Easy
1338 Reduce Array Size to The Half Go Medium
1342 Number of Steps to Reduce a Number to Zero C++ Go Easy
1347 Minimum Number of Steps to Make Two Strings Anagram Go Medium
1354 Construct Target Array With Multiple Sums Go Hard
1356 Sort Integers by The Number of 1 Bits Go Easy
1423 Maximum Points You Can Obtain from Cards Go Medium
1438 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Go Medium
1460 Make Two Arrays Equal by Reversing Subarrays Go Easy
1461 Check If a String Contains All Binary Codes of Size K Go Medium
1465 Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts Go Medium
1473 Paint House III Go Hard
1480 Running Sum of 1d Array Go Easy
1491 Average Salary Excluding the Minimum and Maximum Salary Go Easy
1502 Can Make Arithmetic Progression From Sequence Go Easy
1509 Minimum Difference Between Largest and Smallest Value in Three Moves Go Medium
1523 Count Odd Numbers in an Interval Range Go Easy
1567 Maximum Length of Subarray With Positive Product Go Medium
1572 Matrix Diagonal Sum Go Easy
1588 Sum of All Odd Length Subarrays Go Easy
1603 Design Parking System Go Easy
1642 Furthest Building You Can Reach Go Medium
1647 Minimum Deletions to Make Character Frequencies Unique Go Medium
1653 Minimum Deletions to Make String Balanced Go Medium
1657 Determine if Two Strings Are Close Go Medium
1658 Minimum Operations to Reduce X to Zero Go Medium
1672 Richest Customer Wealth Go Easy
1678 Goal Parser Interpretation Go Easy
1689 Partitioning Into Minimum Number Of Deci-Binary Numbers Go Medium
1695 Maximum Erasure Value Go Medium
1696 Jump Game VI Go Medium
1704 Determine if String Halves Are Alike Go Easy
1710 Maximum Units on a Truck Go Easy
1768 Merge Strings Alternately Go Easy
1779 Find Nearest Point That Has the Same X or Y Coordinate Go Easy
1790 Check if One String Swap Can Make Strings Equal Go Easy
1822 Sign of the Product of an Array Go Easy
1863 Sum of All Subset XOR Totals Go Easy
1915 Number of Wonderful Substrings Go Medium
2000 Reverse Prefix of Word Go Easy
2037 Minimum Number of Moves to Seat Everyone Go Easy
2125 Number of Laser Beams in a Bank Go Medium
2134 Minimum Swaps to Group All 1's Together II Go Medium
2181 Merge Nodes in Between Zeros Go Medium
2225 Find Players With Zero or One Losses Go Medium
2319 Check if Matrix Is X-Matrix Go Easy
2320 Count Number of Ways to Place Houses Go Medium
2321 Maximum Score Of Spliced Array Go Hard
2331 Evaluate Boolean Binary Tree Go Easy
2441 Largest Positive Integer That Exists With Its Negative Go Easy
2487 Remove Nodes From Linked List Go Medium
2597 The Number of Beautiful Subsets Go Medium
2816 Double a Number Represented as a Linked List Go Medium
2870 Minimum Number of Operations to Make Array Empty Go Medium
2997 Minimum Number of Operations to Make Array XOR Equal to K Go Medium
3075 Maximize Happiness of Selected Children Go Medium

About

LeetCode Problems' Solutions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published