My LeetCode Solutions

This is an ongoing project, and by far they are written in Jupyter Notebooks. These notebooks are public in my GitHub, but here for better view, they are rendered on by the nbviewer directly.

Feel free click the Code button above, or here:

nbviewer is an open source project under the larger Project Jupyter. If you see warning message on phone, please change to Chrome browser / or view it on desktop.

Some categories (not all listed):

Records:

CountNumberNameSection
049Group AnagramsArray and Hashing
1128Longest Consecutive SequenceArray and Hashing
217Letter Combinations of a Phone NumberBacktracking
322Generate ParenthesesBacktracking
439Combination SumBacktracking
540Combination Sum IIBacktracking
646PermutationsBacktracking
747Permutations IIBacktracking
878SubsetsBacktracking
9780Reaching PointsBacktracking
1033Search in Rotated Sorted ArrayBinary Search
1134Find First and Last Position of Element in Sorted ArrayBinary Search
12200Number of IslandsDFS
13207Course ScheduleDFS
143Longest Substring Without Repeating CharactersDouble Pointers
1511Container With Most WaterDouble Pointers
16153SumDouble Pointers
1775Sort ColorsDouble Pointers
18142Linked List Cycle IIDouble Pointers
19167Two Sum IIDouble Pointers
20283Move ZeroesDouble Pointers
21287Find the Duplicate NumberDouble Pointers
22713Subarray Product Less Than KDouble Pointers
23-10-1 Knap Sack ProblemDynamic Programming
245Longest Palindromic SubstringDynamic Programming
2564Minimum Path SumDynamic Programming
26139Word BreakDynamic Programming
27152Maximum Product SubarrayDynamic Programming
28198House RobberDynamic Programming
29221Maximal SquareDynamic Programming
30279Perfect SquaresDynamic Programming
31300Longest Increasing SubsequenceDynamic Programming
32309Best Time to Buy and Sell Stock with CooldownDynamic Programming
33322Coin ChangeDynamic Programming
34377Combination Sum IVDynamic Programming
35416Partition Equal Subset SumDynamic Programming
36494Target SumDynamic Programming
37647Palindromic SubstringsDynamic Programming
381049Last Stone Weight IIDynamic Programming
391143Longest Common SubsequenceDynamic Programming
401387Sort Integers by The Power ValueDynamic Programming
412218Maximum Value of K Coins From PilesDynamic Programming
42347Top K Frequent ElementsHeap
4356Merge IntervalsMisc
44136Single NumberMisc
45189Rotate ArrayMisc
46204Count PrimesMisc
47238Product of Array Except SelfMisc
48384Shuffle an ArrayMisc
49470Implement Rand10Misc
50496Next Greater Element IMonotonic Stack
51739Daily TemperaturesMonotonic Stack
52304Range Sum Query 2DPrefix Sum
53370Range AdditionPrefix Sum
54215Kth Largest Element in an ArrayQuick Selection
55209Minimum Size Subarray SumSliding Window
56239Sliding Window MaximumSliding Window
57424Longest Repeating Character ReplacementSliding Window
Table 1: Process