Skip to content

alexparunov/leetcode_solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions

NOTE: The content of this Readme file alongside with solution files were autogenerated by generate_all_files.py script.

Solved Questions: 244/1413 - 17.27%

Easy: 148/244 - 60.66%

Medium: 86/244 - 35.25%

Hard: 10/244 - 4.1%

# Title Solution Difficulty
1 Two Sum Python3 Easy
2 Add Two Numbers Python3 Medium
3 Longest Substring Without Repeating Characters Python3 Medium
4 Median of Two Sorted Arrays Python3 Hard
15 3Sum Python3 Medium
20 Valid Parentheses Python3 Easy
21 Merge Two Sorted Lists Python3 Easy
26 Remove Duplicates from Sorted Array Python3 Easy
27 Remove Element Python3 Easy
28 Implement strStr() Python3 Easy
33 Search in Rotated Sorted Array Python3 Medium
35 Search Insert Position Python3 Easy
36 Valid Sudoku Python3 Medium
49 Group Anagrams Python3 Medium
50 Pow(x, n) Python3 Medium
53 Maximum Subarray Python3 Easy
55 Jump Game Python3 Medium
60 Permutation Sequence Python3 Hard
62 Unique Paths Python3 Medium
64 Minimum Path Sum Python3 Medium
65 Valid Number Python3 Hard
66 Plus One Python3 Easy
67 Add Binary Python3 Easy
69 Sqrt(x) Python3 Easy
70 Climbing Stairs Python3 Easy
72 Edit Distance Python3 Hard
75 Sort Colors Python3 Medium
76 Minimum Window Substring Python3 Hard
78 Subsets Python3 Medium
79 Word Search Python3 Medium
83 Remove Duplicates from Sorted List Python3 Easy
88 Merge Sorted Array Python3 Easy
96 Unique Binary Search Trees Python3 Medium
98 Validate Binary Search Tree Python3 Medium
100 Same Tree Python3 Easy
102 Binary Tree Level Order Traversal Python3 Medium
103 Binary Tree Zigzag Level Order Traversal Python3 Medium
104 Maximum Depth of Binary Tree Python3 Easy
107 Binary Tree Level Order Traversal II Python3 Easy
119 Pascal's Triangle II Python3 Easy
121 Best Time to Buy and Sell Stock Python3 Easy
122 Best Time to Buy and Sell Stock II Python3 Easy
124 Binary Tree Maximum Path Sum Python3 Hard
125 Valid Palindrome Python3 Easy
129 Sum Root to Leaf Numbers Python3 Medium
130 Surrounded Regions Python3 Medium
134 Gas Station Python3 Medium
136 Single Number Python3 Easy
137 Single Number II Python3 Medium
138 Copy List with Random Pointer Python3 Medium
141 Linked List Cycle Python3 Easy
146 LRU Cache Python3 Medium
151 Reverse Words in a String Python3 Medium
153 Find Minimum in Rotated Sorted Array Python3 Medium
155 Min Stack Python3 Easy
160 Intersection of Two Linked Lists Python3 Easy
167 Two Sum II - Input array is sorted Python3 Easy
169 Majority Element Python3 Easy
171 Excel Sheet Column Number Python3 Easy
174 Dungeon Game Python3 Hard
190 Reverse Bits Python3 Easy
200 Number of Islands Python3 Medium
201 Bitwise AND of Numbers Range Python3 Medium
202 Happy Number Python3 Easy
203 Remove Linked List Elements Python3 Easy
205 Isomorphic Strings Python3 Easy
206 Reverse Linked List Python3 Easy
207 Course Schedule Python3 Medium
208 Implement Trie (Prefix Tree) Python3 Medium
210 Course Schedule II Python3 Medium
211 Design Add and Search Words Data Structure Python3 Medium
212 Word Search II Python3 Hard
215 Kth Largest Element in an Array Python3 Medium
217 Contains Duplicate Python3 Easy
219 Contains Duplicate II Python3 Easy
221 Maximal Square Python3 Medium
222 Count Complete Tree Nodes Python3 Medium
226 Invert Binary Tree Python3 Easy
230 Kth Smallest Element in a BST Python3 Medium
231 Power of Two Python3 Easy
232 Implement Queue using Stacks Python3 Easy
234 Palindrome Linked List Python3 Easy
237 Delete Node in a Linked List Python3 Easy
238 Product of Array Except Self Python3 Medium
239 Sliding Window Maximum Python3 Hard
242 Valid Anagram Python3 Easy
257 Binary Tree Paths Python3 Easy
258 Add Digits Python3 Easy
260 Single Number III Python3 Medium
264 Ugly Number II Python3 Medium
273 Integer to English Words Python3 Hard
274 H-Index Python3 Medium
275 H-Index II Python3 Medium
278 First Bad Version Python3 Easy
279 Perfect Squares Python3 Medium
283 Move Zeroes Python3 Easy
292 Nim Game Python3 Easy
299 Bulls and Cows Python3 Easy
303 Range Sum Query - Immutable Python3 Easy
322 Coin Change Python3 Medium
328 Odd Even Linked List Python3 Medium
332 Reconstruct Itinerary Python3 Medium
338 Counting Bits Python3 Medium
342 Power of Four Python3 Easy
344 Reverse String Python3 Easy
345 Reverse Vowels of a String Python3 Easy
347 Top K Frequent Elements Python3 Medium
349 Intersection of Two Arrays Python3 Easy
350 Intersection of Two Arrays II Python3 Easy
355 Design Twitter Python3 Medium
367 Valid Perfect Square Python3 Easy
368 Largest Divisible Subset Python3 Medium
374 Guess Number Higher or Lower Python3 Easy
380 Insert Delete GetRandom O(1) Python3 Medium
383 Ransom Note Python3 Easy
387 First Unique Character in a String Python3 Easy
392 Is Subsequence Python3 Easy
402 Remove K Digits Python3 Medium
406 Queue Reconstruction by Height Python3 Medium
409 Longest Palindrome Python3 Easy
414 Third Maximum Number Python3 Easy
430 Flatten a Multilevel Doubly Linked List Python3 Medium
438 Find All Anagrams in a String Python3 Medium
441 Arranging Coins Python3 Easy
442 Find All Duplicates in an Array Python3 Medium
448 Find All Numbers Disappeared in an Array Python3 Easy
451 Sort Characters By Frequency Python3 Medium
461 Hamming Distance Python3 Easy
463 Island Perimeter Python3 Easy
468 Validate IP Address Python3 Medium
476 Number Complement Python3 Easy
485 Max Consecutive Ones Python3 Easy
496 Next Greater Element I Python3 Easy
501 Find Mode in Binary Search Tree Python3 Easy
509 Fibonacci Number Python3 Easy
518 Coin Change 2 Python3 Medium
520 Detect Capital Python3 Easy
525 Contiguous Array Python3 Medium
528 Random Pick with Weight Python3 Medium
540 Single Element in a Sorted Array Python3 Medium
543 Diameter of Binary Tree Python3 Easy
557 Reverse Words in a String III Python3 Easy
559 Maximum Depth of N-ary Tree Python3 Easy
560 Subarray Sum Equals K Python3 Medium
561 Array Partition I Python3 Easy
567 Permutation in String Python3 Medium
575 Distribute Candies Python3 Easy
599 Minimum Index Sum of Two Lists Python3 Easy
657 Robot Return to Origin Python3 Easy
662 Maximum Width of Binary Tree Python3 Medium
678 Valid Parenthesis String Python3 Medium
680 Valid Palindrome II Python3 Easy
682 Baseball Game Python3 Easy
692 Top K Frequent Words Python3 Medium
700 Search in a Binary Search Tree Python3 Easy
703 Kth Largest Element in a Stream Python3 Easy
704 Binary Search Python3 Easy
705 Design HashSet Python3 Easy
706 Design HashMap Python3 Easy
709 To Lower Case Python3 Easy
717 1-bit and 2-bit Characters Python3 Easy
728 Self Dividing Numbers Python3 Easy
733 Flood Fill Python3 Easy
744 Find Smallest Letter Greater Than Target Python3 Easy
746 Min Cost Climbing Stairs Python3 Easy
771 Jewels and Stones Python3 Easy
784 Letter Case Permutation Python3 Medium
787 Cheapest Flights Within K Stops Python3 Medium
796 Rotate String Python3 Easy
797 All Paths From Source to Target Python3 Medium
804 Unique Morse Code Words Python3 Easy
819 Most Common Word Python3 Easy
844 Backspace String Compare Python3 Easy
852 Peak Index in a Mountain Array Python3 Easy
860 Lemonade Change Python3 Easy
876 Middle of the Linked List Python3 Easy
883 Projection Area of 3D Shapes Python3 Easy
886 Possible Bipartition Python3 Medium
893 Groups of Special-Equivalent Strings Python3 Easy
896 Monotonic Array Python3 Easy
901 Online Stock Span Python3 Medium
905 Sort Array By Parity Python3 Easy
908 Smallest Range I Python3 Easy
918 Maximum Sum Circular Subarray Python3 Medium
922 Sort Array By Parity II Python3 Easy
929 Unique Email Addresses Python3 Easy
941 Valid Mountain Array Python3 Easy
957 Prison Cells After N Days Python3 Medium
973 K Closest Points to Origin Python3 Medium
976 Largest Perimeter Triangle Python3 Easy
977 Squares of a Sorted Array Python3 Easy
986 Interval List Intersections Python3 Medium
987 Vertical Order Traversal of a Binary Tree Python3 Medium
989 Add to Array-Form of Integer Python3 Easy
993 Cousins in Binary Tree Python3 Easy
994 Rotting Oranges Python3 Medium
997 Find the Town Judge Python3 Easy
1008 Construct Binary Search Tree from Preorder Traversal Python3 Medium
1009 Complement of Base 10 Integer Python3 Easy
1021 Remove Outermost Parentheses Python3 Easy
1025 Divisor Game Python3 Easy
1029 Two City Scheduling Python3 Easy
1030 Matrix Cells in Distance Order Python3 Easy
1046 Last Stone Weight Python3 Easy
1047 Remove All Adjacent Duplicates In String Python3 Easy
1051 Height Checker Python3 Easy
1089 Duplicate Zeros Python3 Easy
1103 Distribute Candies to People Python3 Easy
1108 Defanging an IP Address Python3 Easy
1137 N-th Tribonacci Number Python3 Easy
1143 Longest Common Subsequence Python3 Medium
1200 Minimum Absolute Difference Python3 Easy
1217 Play with Chips Python3 Easy
1221 Split a String in Balanced Strings Python3 Easy
1232 Check If It Is a Straight Line Python3 Easy
1237 Find Positive Integer Solution for a Given Equation Python3 Easy
1277 Count Square Submatrices with All Ones Python3 Medium
1281 Subtract the Product and Sum of Digits of an Integer Python3 Easy
1286 Iterator for Combination Python3 Medium
1290 Convert Binary Number in a Linked List to Integer Python3 Easy
1295 Find Numbers with Even Number of Digits Python3 Easy
1299 Replace Elements with Greatest Element on Right Side Python3 Easy
1309 Decrypt String from Alphabet to Integer Mapping Python3 Easy
1313 Decompress Run-Length Encoded List Python3 Easy
1323 Maximum 69 Number Python3 Easy
1333 Filter Restaurants by Vegan-Friendly, Price and Distance Python3 Medium
1344 Angle Between Hands of a Clock Python3 Medium
1346 Check If N and Its Double Exist Python3 Easy
1351 Count Negative Numbers in a Sorted Matrix Python3 Easy
1356 Sort Integers by The Number of 1 Bits Python3 Easy
1370 Increasing Decreasing String Python3 Easy
1374 Generate a String With Characters That Have Odd Counts Python3 Easy
1381 Design a Stack With Increment Operation Python3 Medium
1389 Create Target Array in the Given Order Python3 Easy
1403 Minimum Subsequence in Non-Increasing Order Python3 Easy
1426 Counting Elements Python3 Easy
1427 Perform String Shifts Python3 Easy
1428 Leftmost Column with at Least a One Python3 Medium
1429 First Unique Number Python3 Medium
1430 Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree Python3 Medium
1436 Destination City Python3 Easy
1441 Build an Array With Stack Operations Python3 Easy
1470 Shuffle the Array Python3 Easy
1480 Running Sum of 1d Array Python3 Easy

Releases

No releases published

Packages

No packages published

Languages