Skip to content

JaredLGillespie/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github GitHub

# Problem Difficulty Solution
1 Two Sum Easy Python
2 Add Two Numbers Medium Python
3 Longest Substring Without Repeating Characters Medium Python
4 Median of Two Sorted Arrays Hard Python
5 Longest Palindromic Substring Medium Python
6 ZigZag Conversion Medium Python
7 Reverse Integer Easy Python
8 String to Integer (atoi) Medium Python
9 Palindrome Number Easy Python
11 Container With Most Water Medium Python
12 Integer to Roman Medium Python
13 Roman to Integer Easy Python
14 Longest Common Prefix Easy Python
15 3Sum Medium Python
16 3Sum Closest Medium Python
17 Letter Combinations of a Phone Number Medium Python
18 4Sum Medium Python
19 Remove Nth Node From End of List Medium Python
20 Valid Parentheses Easy Python
21 Merge Two Sorted Lists Easy Python
22 Generate Parentheses Medium Python
23 Merge k Sorted Lists Hard Python
24 Swap Nodes in Pairs Medium Python
26 Remove Duplicates from Sorted Array Easy Python
27 Remove Element Easy Python
28 Implement strStr() Easy Python
29 Divide Two Integers Medium Python
31 Next Permutation Medium Python
34 Find First and Last Position of Element in Sorted Array Medium Python
35 Search Insert Position Easy Python
36 Valid Sudoku Medium Python
37 Sudoku Solver Hard Python
38 Count and Say Easy Python
39 Combination Sum Medium Python
40 Combination Sum II Medium Python
42 Trapping Rain Water Hard Python
46 Permutations Medium Python
47 Permutations II Medium Python
49 Group Anagrams Medium Python
50 Pow(x, n) Medium Python
51 N-Queens Hard Python
52 N-Queens II Hard Python
53 Maximum Subarray Easy Python
54 Spiral Matrix Medium Python
56 Merge Intervals Medium Python
58 Length of Last Word Easy Python
62 Unique Paths Medium Python
63 Unique Paths II Medium Python
64 Minimum Path Sum Medium Python
66 Plus One Easy Python
67 Add Binary Easy Python
69 Sqrt(x) Easy Python
70 Climbing Stairs Easy Python
73 Set Matrix Zeroes Medium Python
75 Sort Colors Medium Python
76 Minimum Window Substring Hard Python
78 Subsets Medium Python
79 Word Search Medium Python
83 Remove Duplicates from Sorted List Easy Python
88 Merge Sorted Array Easy Python
90 Subsets II Medium Python
98 Validate Binary Search Tree Medium Python
100 Same Tree Easy Python
101 Symmetric Tree Easy Python
104 Maximum Depth of Binary Tree Easy Python
107 Binary Tree Level Order Traversal II Easy Python
108 Convert Sorted Array to Binary Search Tree Easy Python
110 Balanced Binary Tree Easy Python
111 Minimum Depth of Binary Tree Easy Python
112 Path Sum Easy Python
113 Path Sum II Medium Python
118 Pascal's Triangle Easy Python
119 Pascal's Triangle II Easy Python
121 Best Time to Buy and Sell Stock Easy Python
122 Best Time to Buy and Sell Stock II Easy Python
123 Best Time to Buy and Sell Stock III Hard Python
124 Binary Tree Maximum Path Sum Hard Python
125 Valid Palindrome Easy Python
136 Single Number Easy Python
137 Single Number II Medium Python
138 Copy List with Random Pointer Medium Python
139 Word Break Medium Python
140 Word Break II Hard Python
141 Linked List Cycle Easy Python
142 Linked List Cycle II Medium Python
146 LRU Cache Hard Python
149 Max Points on a Line Hard Python
151 Reverse Words in a String Medium Python
155 Min Stack Easy Python
157 Read N Characters Given Read4 Easy Python
159 Longest Substring with At Most Two Distinct Characters Hard Python
163 Missing Ranges Medium Python
167 Two Sum II - Input array is sorted Easy Python
169 Majority Element Easy Python
171 Excel Sheet Column Number Easy Python
173 Binary Search Tree Iterator Medium Python
174 Dungeon Game Hard Python
186 Reverse Words in a String II Medium Python
189 Rotate Array Easy Python
191 Number of 1 Bits Easy Python
198 House Robber Easy Python
200 Number of Islands Medium Python
203 Remove Linked List Elements Easy Python
204 Count Primes Easy Python
205 Isomorphic Strings Easy Python
206 Reverse Linked List Easy Python
208 Implement Trie (Prefix Tree) Medium Python
212 Word Search II Hard Python
213 House Robber II Medium Python
215 Kth Largest Element in an Array Medium Python
216 Combination Sum III Medium Python
217 Contains Duplicate Easy Python
218 The Skyline Problem Hard Python
219 Contains Duplicate II Easy Python
220 Contains Duplicate III Medium Python
222 Count Complete Tree Nodes Medium Python
226 Invert Binary Tree Easy Python
230 Kth Smallest Element in a BST Medium Python
232 Implement Queue using Stacks Easy Python
234 Palindrome Linked List Easy Python
237 Delete Node in a Linked List Easy Python
239 Sliding Window Maximum Hard Python
242 Valid Anagram Easy Python
243 Shortest Word Distance Easy Python
246 Strobogrammatic Number Easy Python
247 Strobogrammatic Number II Medium Python
250 Count Univalue Subtrees Medium Python
256 Paint House Easy Python
258 Add Digits Easy Python
259 3Sum Smaller Medium Python
263 Ugly Number Easy Python
265 Paint House II Hard Python
266 Palindrome Permutation Easy Python
268 Missing Number Easy Python
269 Alien Dictionary Hard Python
270 Closest Binary Search Tree Value Easy Python
271 Encode and Decode Strings Medium Python
276 Paint Fence Easy Python
278 First Bad Version Easy Python
283 Move Zeroes Easy Python
284 Peeking Iterator Medium Python
285 Inorder Successor in BST Medium Python
288 Unique Word Abbreviation Medium Python
289 Game of Life Medium Python
292 Nim Game Easy Python
293 Flip Game Easy Python
295 Find Median from Data Stream Hard Python
297 Serialize and Deserialize Binary Tree Easy Python
298 Binary Tree Longest Consecutive Sequence Medium Python
299 Bulls and Cows Medium Python
303 Range Sum Query - Immutable Easy Python
304 Range Sum Query 2D - Immutable Medium Python
305 Number of Islands II Hard Python
307 Range Sum Query - Mutable Medium Python
318 Maximum Product of Word Lengths Medium Python
322 Coin Change Medium Python
339 Nested List Weight Sum Easy Python
340 Longest Substring with At Most K Distinct Characters Hard Python
344 Reverse String Easy Python
345 Reverse Vowels of a String Easy Python
346 Moving Average from Data Stream Easy Python
348 Design Tic-Tac-Toe Medium Python
349 Intersection of Two Arrays Easy Python
350 Intersection of Two Arrays II Easy Python
356 Line Reflection Medium Python
359 Logger Rate Limiter Easy Python
361 Bomb Enemy Medium Python
362 Design Hit Counter Medium Python
371 Sum of Two Integers Easy Python
374 Guess Number Higher or Lower Easy Python
377 House Robber III Medium Python
380 Insert Delete GetRandom O(1) Medium Python
381 Insert Delete GetRandom O(1) - Duplicates allowed Hard Python
383 Ransom Note Easy Python
387 First Unique Character in a String Easy Python
388 Longest Absolute File Path Medium Python
389 Find the Difference Easy Python
393 UTF-8 Validation Medium Python
399 Evaluate Division Medium Python
401 Binary Watch Easy Python
412 Fizz Buzz Easy Python
415 Add Strings Easy Python
418 Sentence Screen Fitting Medium Python
422 Valid Word Square Easy Python
425 Word Squares Hard Python
429 N-ary Tree Level Order Traversal Easy Python
437 Path Sum III Easy Python
438 Find All Anagrams in a String Easy Python
443 String Compression Easy Python
448 Find All Numbers Disappeared in an Array Easy Python
453 Minimum Moves to Equal Array Elements Easy Python
461 Hamming Distance Easy Python
462 Minimum Moves to Equal Array Elements II Medium Python
463 Island Perimeter Easy Python
475 Heaters Easy Python
476 Number Complement Easy Python
477 Number of Boomerangs Easy Python
480 Sliding Window Median Hard Python
482 License Key Formatting Easy Python
485 Max Consecutive Ones Easy Python
496 Next Greater Element I Easy Python
498 Robot Room Cleaner Hard Python
500 Keyboard Row Easy Python
509 Fibonacci Number Easy Python
520 Detect Capital Easy Python
521 Longest Uncommon Subsequence I Easy Python
531 Lonely Pixel I Medium Python
539 Minimum Time Difference Medium Python
543 Diameter of Binary Tree Easy Python
552 Subtree of Another Tree Easy Python
557 Reverse Words in a String III Easy Python
559 Maximum Depth of N-ary Tree Easy Python
561 Array Partition I Easy Python
575 Distribute Candies Easy Python
589 N-ary Tree Preorder Traversal Easy Python
590 N-ary Tree Postorder Traversal Easy Python
616 Add Bold Tag in String Medium Python
617 Merge Two Binary Trees Easy Python
628 Maximum Product of Three Numbers Easy Python
637 Average of Levels in Binary Tree Easy Python
642 Design Search Autocomplete System Hard Python
653 Two Sum IV - Input is a BST Easy Python
657 Robot Return to Origin Easy Python
658 Find K Closest Elements Medium Python
659 Split Array into Consecutive Subsequences Medium Python
666 Path Sum IV Medium Python
669 Trim a Binary Search Tree Easy Python
671 Second Minimum Node in a Binary Tree Easy Python
681 Next Closest Time Medium Python
682 Baseball Game Easy Python
683 K Empty Slots Hard Python
686 Repeated String Match Easy Python
687 Longest Univalue Path Easy Python
690 Employee Importance Easy Python
693 Binary Number with Alternating Bits Easy Python
694 Number of Distinct Islands Medium Python
695 Max Area of Island Medium Python
697 Degree of an Array Easy Python
700 Search in a Binary Search Tree Easy Python
703 Kth Largest Element in a Stream Easy Python
706 Design HashMap Easy Python
708 Insert into a Cyclic Sorted List Medium Python
709 To Lower Case Easy Python
716 Max Stack Easy Python
717 1-bit and 2-bit Characters Easy Python
724 Find Pivot Index Easy Python
728 Self Dividing Numbers Easy Python
729 My Calendar I Medium Python
731 My Calendar II Medium Python
733 Flood Fill Easy Python
734 Sentence Similarity Easy Python
741 Cherry Pickup Hard Python
746 Min Cost Climbing Stairs Easy Python
748 Shortest Completing Word Easy Python
760 Find Anagram Mappings Easy Python
762 Prime Number of Set Bits in Binary Representation Easy Python
765 Couples Holding Hands Hard Python
766 Toeplitz Matrix Easy Python
771 Jewels and Stones Easy Python
784 Letter Case Permutation Easy Python
794 Valid Tic-Tac-Toe State Medium Python
796 Rotate String Easy Python
804 Unique Morse Code Words Easy Python
806 Number of Lines to Write String Easy Python
811 Subdomain Visit Count Easy Python
812 Largest Triangle Area Easy Python
819 Most Common Word Easy Python
821 Shortest Distance to a Character Easy Python
824 Goat Latin Easy Python
832 Flipping an Image Easy Python
833 Find And Replace in String Medium Python
843 Guess the Word Hard Python
844 Backspace String Compare Easy Python
849 Maximize Distance to Closest Person Easy Python
852 Peak Index in a Mountain Array Easy Python
854 K-Similar Strings Hard Python
857 Minimum Cost to Hire K Workers Hard Python
860 Lemonade Change Easy Python
867 Transpose Matrix Easy Python
868 Binary Gap Easy Python
871 Minimum Number of Refueling Stops Hard Python
873 Length of Longest Fibonacci Subsequence Medium Python
876 Middle of the Linked List Easy Python
883 Projection Area of 3D Shapes Easy Python
884 Uncommon Words from Two Sentences Easy Python
888 Fair Candy Swap Easy Python
892 Surface Area of 3D Shapes Easy Python
896 Monotonic Array Easy Python
897 Increasing Order Search Tree Easy Python
904 Fruit into Baskets Medium Python
905 Sort Array by Parity Easy Python
908 Smallest Range I Easy Python
909 Snakes and Ladders Medium Python
910 Smallest Range II Medium Python
911 Online Election Medium Python
913 Cat and Mouse Hard Python
914 X of a Kind in a Deck of Cards Easy Python
915 Partition Array into Disjoint Intervals Medium Python
916 Word Subsets Medium Python
917 Reverse Only Letters Easy Python
922 Sort Array By Parity II Easy Python
929 Unique Email Addresses Easy Python
931 Minimum Falling Path Sum Medium Python
933 Number of Recent Calls Easy Python
941 Valid Mountain Array Easy Python
942 DI String Match Easy Python
944 Delete Columns to Make Sorted Medium Python
945 Minimum Increment to Make Array Unique Medium Python
946 Validate Stack Sequences Medium Python
947 Most Stones Removed with Same Row or Columns Hard Python
948 Bag of Tokens Medium Python
953 Verifying an Alien Dictionary Easy Python
961 N-Repeated Element in Size 2N Array Easy Python
965 Univalued Binary Tree Easy Python
973 K Closest Points to Origin Easy Python
977 Squares of a Sorted Array Easy Python
985 Sum of Even Numbers After Queries Easy Python
1002 Find Common Characters Easy Python
1003 Check If Word Is Valid After Substitutions Medium Python
1004 Max Consecutive Ones III Medium Python

About

Python solutions of LeetCode questions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages