Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Leetcode Python Solution. Those who Want to learn Python From Scratch check out the Website linked below. Good Luck.

License

NotificationsYou must be signed in to change notification settings

rajeevranjancom/Leetcode_Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

copyRight@Rajeev Ranjan

Links:

Websites
https://www.python.org/doc/ (Documentation Releases by Version)
https://www.python.org/downloads/ (Download the latest source release)
https://docs.python.org/3/tutorial/ (The Python Tutorial)
https://www.python.org/about/gettingstarted/ (Python For Beginners)
https://docs.python.org/3/library/ (The Python Standard Library)
https://wiki.python.org/moin/PythonPeriodicals (PythonPeriodicals)
https://packaging.python.org/ (Python Packaging User Guide)
https://pyvideo.org/ (Python related videos)
https://docs.python.org/3/ (Python 3.8.6rc1 documentation)

Notes:

Important
Python is an interpreted, high-level and general-purpose programming language. Created by Guido van Rossum and first released in 1991, Python's design philosophy emphasizes code readability with its notable use of significant whitespace.
Typing discipline: Duck, dynamic, gradual (since 3.5)
Designed by: Guido van Rossum
OS: Linux, macOS, Windows Vista (and newer) and more
Filename extensions: .py,.pyi,.pyc,.pyd,.pyo (prior to 3.5),.pyw,.pyz (since 3.5)

Table

#TitleSolutionDifficultyTag
1Two SumC++EasyArray / Hash Table
2Add Two NumbersC++MediumLinked List
3Longest Substring Without Repeating CharactersC++MediumHash Table / Two Pointers
4Median of Two Sorted ArraysC++HardArray / Binary Search
5Longest Palindromic SubstringC++MediumString
6ZigZag ConversionC++MediumString
7Reverse IntegerC++EasyMath
8String to Integer (atoi)C++MediumString
9Palindrome NumberC++EasyMath
10Regular Expression MatchingC++HardString / Dynamic Programming / Backtracking
11Container With Most WaterC++MediumArray / Two Pointers
12Integer to RomanC++MediumString
13Roman to IntegerC++EasyString
14Longest Common PrefixC++EasyString
153SumC++MediumArray / Two Pointers
163Sum ClosestC++MediumArray / Two Pointers
17Letter Combinations of a Phone NumberC++MediumBacktracking / String
184SumC++MediumArray
19Remove Nth Node From End of ListC++MediumLinked List / Two Pointers
20Valid ParenthesesC++EasyStack
21Merge Two Sorted ListsC++EasyLinked List
22Generate ParenthesesC++MediumString / Backtracking
23Merge k Sorted ListsC++HardLinked List / Heap
24Swap Nodes in PairsC++MediumLinked List
25Reverse Nodes in k-GroupC++HardLinked List
26Remove Duplicates from Sorted ArrayC++EasyArray / Two Pointers
27Remove ElementC++EasyArray / Two Pointers
28Implement strStr()C++EasyString
29Implement strStr()C++EasyString
31Next PermutationC++MediumArray
33Search in Rotated Sorted ArrayC++MediumArray / Binary Search
34Search for a RangeC++MediumArray / Binary Search
35Search Insert PositionC++EasyArray / Binary Search
36Valid SudokuC++MediumHash Table
37Sudoku SolverC++MediumHash Table
38Count and SayC++EasyString
39Combination SumC++MediumArray / Backtracking
40Combination Sum IIC++MediumArray / Backtracking
41First Missing PositiveC++HardArray
42Trapping Rain WaterC++HardArray / Two Pointers / Stack
43Multiply StringsC++MediumString
44Wildcard MatchingC++HardString / Backtracking / Greedy
45Jump Game IIC++HardArray / Greedy
46PermutationsC++MediumBacktracking
47Permutations IIC++MediumBacktracking
48Rotate ImageC++MediumMatrix
49Group AnagramsC++MediumHash Table / String
50Pow(x, n)C++MediumBinary Search
51Pow(x, n)C++MediumBinary Search
52Pow(x, n)C++MediumBinary Search
53Maximum SubarrayC++EasyDynamic Programming / Array
54Spiral MatrixC++MediumArray
55Jump GameC++MediumArray / Greedy
56Merge IntervalsC++MediumArray / Sort
57Insert IntervalC++HardArray / Sort
58Length of Last WordC++EasyString
59Spiral Matrix IIC++MediumArray
60Permutation SequenceC++MediumBacktracking / Math
61Rotate ListC++MediumLinked List / Two Pointers
62Unique PathsC++MediumArray / Dynamic Programming
63Unique Paths IIC++MediumArray / Dynamic Programming
64Minimum Path SumC++MediumArray / Dynamic Programming
65Valid NumberC++MediumArray / Dynamic Programming
66Plus OneC++EasyArray / Math
67Add BinaryC++EasyString
68Text JustificationC++HardString
69Sqrt(x)C++EasyBinary Search / Math
70Climbing StairsC++EasyDynamic Programming
71Simplify PathC++MediumStack / String
72Edit DistanceC++MediumStack / String
73Set Matrix ZeroesC++MediumArray
74Search a 2D MatrixC++MediumArray / Binary Search
75Sort ColorsC++MediumArray / Two Pointers
76Minimum Window SubstringC++HardHash Table / Two pointers / String
78SubsetsC++MediumArray / Backtracking
79Word SearchC++MediumMatrix / Backtracking
80Remove Duplicates from Sorted Array IIC++MediumArray / Two Pointers
82Remove Duplicates from Sorted List IIC++MediumLinked List
83Remove Duplicates from Sorted ListC++EasyLinked List
84Largest Rectangle in HistogramC++HardArray
85Maximal RectangleC++HardArray
86Partition ListC++MediumLinked List
88Merge Sorted ArrayC++EasyArray / Two Pointers
90Subsets IIC++MediumArray / Backtracking
91Decode WaysC++MediumDynamic Programming / String
92Reverse Linked List IIC++MediumLinked List
94Binary Tree Inorder TraversalC++MediumTree / Stack
95Unique Binary Search Trees IIC++MediumTree
96Unique Binary Search TreesC++HardTree / DFS
97Interleaving StringC++HardTree / DFS
98Validate Binary Search TreeC++MediumTree
99Recover Binary Search TreeC++HardTree / DFS
100Same TreeC++EasyTree / DFS
101Symmetric TreeC++EasyTree
102Binary Tree Level Order TraversalC++MediumTree / DFS / BFS
103Binary Tree Zigzag Level Order TraversalC++MediumTree / BFS
104Maximum Depth of Binary TreeC++EasyTree
105Construct Binary Tree from Preorder and Inorder TraversalC++MediumArray / Tree / DFS
106Construct Binary Tree from Inorder and Postorder TraversalC++MediumLinked List / DFS
107Binary Tree Level Order Traversal IIC++EasyTree
108Convert Sorted Array to Binary Search TreeC++EasyTree / DFS
109Convert Sorted List to Binary Search TreeC++MediumLinked List / DFS
110Balanced Binary TreeC++EasyTree / DFS
111Minimum Depth of Binary TreeC++EasyTree
112Path SumC++EasyTree / DFS
113Path Sum IIC++MediumTree / DFS
114Flatten Binary Tree to Linked ListC++MediumTree / DFS
116Populating Next Right Pointers in Each NodeC++MediumTree / BFS
117Populating Next Right Pointers in Each Node IIC++MediumTree / Level-order Traversal
118Pascal's TriangleC++EasyArray
119Pascal's Triangle IIC++EasyArray
120TriangleC++MediumArray / Dynamic Programming
121Best Time to Buy and Sell StockC++EasyArray / Dynamic Programming
122Best Time to Buy and Sell StockC++HardTree / DFS
123Best Time to Buy and Sell StockC++HardTree / DFS
124Binary Tree Maximum Path SumC++HardTree / DFS
125Valid PalindromeC++EasyString / Two Pointers
126Word LadderC++HardArray / Unoin Find
127Word LadderC++MediumString / BFS
128Longest Consecutive SequenceC++HardArray / Unoin Find
129Sum Root to Leaf NumbersC++MediumTree / DFS / BFS
130Surrounded RegionsC++MediumDFS / BFS / Union Find
131Palindrome PartitioningC++MediumBacktracking
132Palindrome PartitioningC++EasyBit Manipulation
133Clone GraphC++MediumGraph / DFS / BFS
134Gas StationC++MediumGreedy
136Single NumberC++EasyBit Manipulation
137Single NumberllC++MediumDynamic Programming
138Copy List with Random PointerC++MediumHash Table / Linked List
139Word BreakC++MediumDynamic Programming
140Word BreakIIC++MediumDynamic Programming
141Linked List CycleC++EasyLinked List / Two Pointers
142Linked List Cycle IIC++MediumLinked List / Two Pointers
143Reorder ListC++MediumLinked List
144Binary Tree Preorder TraversalC++MediumTree / Stack
145Binary Tree Postorder TraversalC++HardTree / Stack
146LRU CacheC++HardDesign
147Insertion Sort ListC++EasyStack / Design
148Sort ListC++EasyStack / Design
149 Max Points on a LineC++EasyStack / Design
151Reverse Words in a StringC++MediumString
152Maximum Product SubarrayC++HardString / Two Pointers
153Find Minimum in Rotated Sorted ArrayC++HardString / Two Pointers
154Find Minimum in Rotated Sorted ArrayC++HardString / Two Pointers
155Min StackC++EasyStack / Design
157Read N Characters Given Read4C++EasyString
158Read N Characters Given Read4 II - Call multiple timesC++HardString
159Longest Substring with At Most Two Distinct CharactersC++HardString / Two Pointers
160Intersection of Two Linked ListsC++MediumString
161One Edit DistanceC++MediumString
162Find Peak ElementC++MediumBinary Search
163Missing RangesC++MediumArray
168Excel Sheet Column TitleC++EasyMath
169Majority ElementC++EasyArray
171Excel Sheet Column NumberC++EasyMath
173Binary Search Tree IteratorC++MediumTree / Stack / Design
186Reverse Words in a String IIC++MediumString
191Number of 1 BitsC++EasyBit Manipulation
198House RobberC++EasyDynamic Programming
200Number of IslandsC++MediumBFS / Union Find
205Isomorphic StringsC++EasyHash Table
206Reverse Linked ListC++EasyLinked List
207Course ScheduleC++MediumGraph / BFS / Topological Sort
208Implement Trie (Prefix Tree)C++MediumTrie / Design
209Minimum Size Subarray SumC++MediumArray / Two Pointers
210Course Schedule IIC++MediumGraph / BFS / Topological Sort
211Add and Search Word - Data structure designC++MediumDesign / Trie
212Word Search IIC++HardBacktracking / Trie
214Shortest PalindromeC++HardString
215Kth Largest Element in an ArrayC++MediumSort / Partition
221Maximal SquareC++MediumDynamic Programming / BFS
223Rectangle AreaC++MediumMath
224Basic CalculatorC++HardString / Stack
226Invert Binary TreeC++EasyTree
227Basic Calculator IIC++MediumString
228Summary RangesC++MediumArray
229Majority Element IIC++MediumArray
230Kth Smallest Element in a BSTC++MediumTree
231Power of TwoC++EasyBit Manipulation
234Palindrome Linked ListC++EasyLinked List / Two Pointers
235Lowest Common Ancestor of a Binary Search TreeC++EasyTree
236Lowest Common Ancestor of a Binary TreeC++MediumTree
238Product of Array Except SelfC++MediumArray
239Sliding Window MaximumC++HardHeap
240Search a 2D Matrix IIC++MediumBinary Search / Divide and Conquer
244Shortest Word Distance IIC++MediumHash Table / Design
246Strobogrammatic NumberC++EasyHash Table / Math
247Strobogrammatic Number IIC++MediumMath / Recursion
249Group Shifted StringsC++MediumString
251Flatten 2D VectorC++MediumDesign
252Meeting RoomsC++EasySort
253Meeting Rooms IIC++MediumHeap / Sort
255Verify Preorder Sequence in Binary Search TreeC++MediumStack / Tree
257Binary Tree PathsC++EasyTree / DFS / BFS
258Add DigitsC++EasyMath
2593Sum SmallerC++MediumArray / Two Pointers
261Graph Valid TreeC++MediumGraph / BFS / DFS / Union Find
263Ugly NumberC++EasyMath
264Ugly Number IIC++MediumDynamic Programming / Math
266Palindrome PermutationC++EasyHash Table
267Palindrome Permutation IIC++MediumBacktracking
268Missing NumberC++EasyArray / Bit Manipulation
269Alien DictionaryC++HardGraph / Topological Sort
270Closest Binary Search Tree ValueC++EasyTree / Binary Search
271Encode and Decode StringsC++MediumString / Design
272Closest Binary Search Tree Value IIC++HardTree / Stack
273Integer to English WordsC++HardString
274H-IndexC++MediumSort
275H-Index IIC++MediumBinary Search
276Paint FenceC++EasyDynamic Programming
277Find the CelebrityC++MediumArray
278First Bad VersionC++EasyBinary Search
279Perfect SquaresC++MediumMath / Dynamic Programming
280Wiggle SortC++EasyArray
281Zigzag IteratorC++MediumDesign
282Expression Add OperatorsC++HardDivide and Conquer
283Move ZeroesC++EasyArray / Two Pointers
284Peeking IteratorC++MedumDesign
285Inorder Successor in BSTC++MediumTree
286Walls and GatesC++MediumBFS
289Game of LifeC++MediumArray
290Word PatternC++EasyHash Table
293Flip GameC++EasyString
294Flip Game IIC++MediumBacktracking
295Find Median from Data StreamC++HardHeap / Design
297Serialize and Deserialize Binary TreeC++HardTree / Design
298Binary Tree Longest Consecutive SequenceC++MediumTree
300Longest Increasing SubsequenceC++MediumBinary Search / Dynamic Programming
301Remove Invalid ParenthesesC++HardBacktracking / DFS / BFS
303Range Sum Query - ImmutableC++EasyDynamic Programming
304Range Sum Query 2D - ImmutableC++MediumDynamic Programming
305Number of Islands IIC++HardUnion Find
307Range Sum Query - MutableC++MediumSegment Tree
309Best Time to Buy and Sell Stock with CooldownC++MediumDynamic Programming
310Minimum Height TreesC++MediumBFS/ Graph
311Sparse Matrix MultiplicationC++MediumMatrix
313Super Ugly NumberC++MediumDynamic Programming / Math
314Binary Tree Vertical Order TraversalC++MediumBFS
315Count of Smaller Numbers After SelfC++HardDivide and Conqur / Binary Search Tree
317Shortest Distance from All BuildingsC++HardBFS
318Maximum Product of Word LengthsC++MediumBit Manipulation
323Number of Connected Components in an Undirected GraphC++MediumGraph / Union Find / BFS / DFS
325Maximum Size Subarray Sum Equals kC++MediumArray / Hash Table
329Longest Increasing Path in a MatrixC++HardDFS / Memorization
331Verify Preorder Serialization of a Binary TreeC++MediumStack
332Reconstruct ItineraryC++MediumGraph / DFS
333Largest BST SubtreeC++MediumTree
334Increasing Triplet SubsequenceC++MediumArray
336Palindrome PairsC++HardHash Table / String / Trie
339Nested List Weight SumC++EasyDFS
340Longest Substring with At Most K Distinct CharactersC++HardHash Table / String
341Flatten Nested List IteratorC++MediumStack / Design
344Reverse StringC++EasyString
347Top K Frequent ElementsC++MediumHash Table / Heap
348Design Tic-Tac-ToeC++MediumDesign
351Android Unlock PatternsC++MediumDFS / Dynamic Programming
354Russian Doll EnvelopesC++HardBinary Search / Dynamic Programming
355Design TwitterC++MediumHash Table / Design
359Logger Rate LimiterC++EasyHash Table / Design
360Sort Transformed ArrayC++MediumMath / Two Pointers
361Bomb EnemyC++MediumDynamic Programming
362Design Hit CounterC++MediumDesign
364Nested List Weight Sum IIC++MediumDFS
369Plus One Linked ListC++MediumLinked List
373Find K Pairs with Smallest SumsC++MediumHeap
377Combination Sum IVC++MediumDynamic Programming
378Kth Smallest Element in a Sorted MatrixC++MediumBinary Search / Heap
380Insert Delete GetRandom O(1)C++MediumHash Table / Design
382Linked List Random NodeC++MediumReservoir Sampling
394Decode StringC++MediumString / DFS
398Random Pick IndexC++MediumReservoir Sampling
399Evaluate DivisionC++MediumGraph
402Remove K DigitsC++MediumGreedy
404Sum of Left LeavesC++EasyTree
408Valid Word AbbreviationC++EasyString
409Longest PalindromeC++EasyHash Table
411Minimum Unique Word AbbreviationC++HardBacktracking
412Fizz BuzzC++EasyArray
416Partition Equal Subset SumC++MediumDynamic Programming
417Pacific Atlantic Water FlowC++MediumDFS / BFS
418Sentence Screen FittingC++MediumDynamic Programming
433Minimum Genetic MutationC++MediumBFS
435Non-overlapping IntervalsC++MediumGreedy
436Find Right IntervalC++MediumArray / Binary Search
438Find All Anagrams in a StringC++EasyHash Table
441Arranging CoinsC++EasyMath
444Sequence ReconstructionC++MediumGraph / Topological Sort
450Delete Node in a BSTC++MediumTree
451Sort Characters By FrequencyC++MediumHash Table / Heap
461Hamming DistanceC++EasyBit Manipulation
467Unique Substrings in Wraparound StringC++MediumDynamic Programming
473Matchsticks to SquareC++MediumDFS
477Total Hamming DistanceC++MediumBit Manipulation
482License Key FormattingC++MediumArray
484Find PermutationC++MediumGreedy
486Predict the WinnerC++MediumDynamic Programming / Minimax
487Max Consecutive Ones IIC++MediumTwo Pointers
489Robot Room CleanerC++HardDFS
490The MazeC++MediumBFS / DFS
494Target SumC++MediumBacktracking
496Next Greater Element IC++EasyStack
498Diagonal TraverseC++MediumMatrix
499The Maze IIIC++HardDFS / BFS
503Next Greater Element IIC++MediumStack
505The Maze IIC++MediumDFS / BFS
508Most Frequent Subtree SumC++MediumTree / Hash Table
513Find Bottom Left Tree ValueC++MediumTree / BFS / DFS
515Find Largest Value in Each Tree RowC++MediumTree / BFS / DFS
523Continuous Subarray SumC++MediumDynamic Programming
524Longest Word in Dictionary through DeletingC++MediumTwo Pointers
525Contiguous ArrayC++MediumHash Table
531Lonely Pixel IC++MediumArray / DFS
535Encode and Decode TinyURLC++MediumString
536Construct Binary Tree from StringC++MediumString / Tree
538Convert BST to Greater TreeC++EasyDFS
540Single Element in a Sorted ArrayC++MediumArray / Binary Search
541Reverse String IIC++EasyString
54201 MatrixC++MediumBFS / DFS
543Diameter of Binary TreeC++EasyTree
547Friend CirclesC++MediumDFS / Union Find
549Binary Tree Longest Consecutive Sequence IIC++MediumTree
554Brick WallC++MediumHash Table
556Next Greater Element IIIC++MediumString
560Subarray Sum Equals KC++MediumArray / Map
562Longest Line of Consecutive One in MatrixC++MediumArray
565Array NestingC++MediumArray
566Reshape the MatrixC++EasyArray
567Permutation in StringC++MediumTwo Pointers
572Subtree of Another TreeC++EasyTree
582Kill ProcessC++MediumTree / BFS / DFS
583Delete Operation for Two StringsC++MediumDynamic Programming
599Minimum Index Sum of Two ListsC++EasyHash Table
606Construct String from Binary TreeC++EasyTree / String
611Valid Triangle NumberC++MediumArray
616Add Bold Tag in StringC++MediumString
621Task SchedulerC++MediumArray / Queue
632Smallest RangeC++HardTwo Pointers
633Sum of Square NumbersC++EasyMath
635Design Log Storage SystemC++MediumString / Design
636Exclusive Time of FunctionsC++MediumStack
637Average of Levels in Binary TreeC++EasyBFS
639Decode Ways IIC++HardDynamic Programming
642Design Search Autocomplete SystemC++HardDesign / Trie
643Maximum Average Subarray IC++EasyArray
645Set MismatchC++EasyHash Table / Math
647Palindromic SubstringsC++MediumString
648Replace WordsC++MediumHash Table / Trie
652Find Duplicate SubtreesC++MediumTree
653Two Sum IV - Input is a BSTC++EasyDFS
654Maximum Binary TreeC++MediumTree
657Judge Route CircleC++EasyString
658Find K Closest ElementsC++MediumBinary Search
659Split Array into Consecutive SubsequencesC++MediumGreedy
662Maximum Width of Binary TreeC++MediumTree / BFS / DFS
663Equal Tree PartitionC++MediumTree
665Non-decreasing ArrayC++EasyArray
669Trim a Binary Search TreeC++EasyTree
670Maximum SwapC++MediumArray / Math
671Second Minimum Node In a Binary TreeC++EasyTree
673Number of Longest Increasing SubsequenceC++MediumDynamic Programming
674Longest Continuous Increasing SubsequenceC++EasyArray
676Implement Magic DictionaryC++MediumHash Table / Trie
677Map Sum PairsC++MediumTrie
67924 GameC++HardDFS
680Valid Palindrome IIC++EasyString
681Next Closest TimeC++MediumString
683K Empty SlotsC++HardArray / Binary Search
684Redundant ConnectionC++MediumGraph / Union Find
685Redundant Connection IIC++HardGraph / DFS / Union Find
686Repeated String MatchC++EasyString
687Longest Univalue PathC++EasyTree / DFS
688Knight Probability in ChessboardC++MediumDynamic Programming
689Maximum Sum of 3 Non-Overlapping SubarraysC++HardArray / Dynamic Programming
690Employee ImportanceC++EasyHash Table / BFS / DFS
692Top K Frequent WordsC++MediumHash Table / Heap
693Binary Number with Alternating BitsC++EasyBit Manipulation
694Number of Distinct IslandsC++MediumHash Table / DFS
695Max Area of IslandC++EasyArray / DFS
696Count Binary SubstringsC++EasyString
697Degree of an ArrayC++EasyArray
701Insert into a Binary Search TreeC++MediumArray
713Subarray Product Less Than KC++MediumArray
7171-bit and 2-bit CharactersC++EasyArray
718Maximum Length of Repeated SubarrayC++MediumArray / Dynamic Programming
720Longest Word in DictionaryC++EasyHash Table / Trie
723Candy CrushC++MediumArray / Two Pointers
724Find Pivot IndexC++EasyArray
725Split Linked List in PartsC++MediumLinked List
728Self Dividing NumbersC++EasyMath
729My Calendar IC++MediumArray
733Flood FillC++EasyDFS
734Sentence SimilarityC++EasyHash Table
735Asteroid CollisionC++MediumStack
739Daily TemperaturesC++MediumStack / Hash Table
740Delete and EarnC++MediumDynamic Programming
742Closest Leaf in a Binary TreeC++MediumTree / Graph
746Min Cost Climbing StairsC++EasyArray / Dynamic Programming
747Largest Number At Least Twice of OthersC++EasyArray
750Number Of Corner RectanglesC++MediumDynamic Programming
753Cracking the SafeC++HardDFS
758Bold Words in StringC++EasyString
760Find Anagram MappingsC++EasyHash Table
763Partition LabelsC++MediumTwo Pointers / Greedy
765Couples Holding HandsC++HardGreedy / Union Find / Greedy
766Toeplitz MatrixC++EasyArray
769Max Chunks To Make SortedC++MediumArray
771Jewels and StonesC++EasyHash Table
773Sliding PuzzleC++HardBFS
777Swap Adjacent in LR StringC++MediumBrainteaser
779K-th Symbol in GrammarC++MediumRecursion
783Minimum Distance Between BST NodesC++EasyTree
784Letter Case PermutationC++EasyString
785Is Graph BipartiteC++MediumGraph
787Cheapest Flights Within K StopsC++MediumGraph / Heap
791Custom Sort StringC++MediumString
792Number of Matching SubsequencesC++MediumArray
797All Paths From Source to TargetC++MediumDFS / Graph
798Smallest Rotation with Highest ScoreC++HardArray
799Champagne TowerC++MediumArray
802Find Eventual Safe StatesC++MediumDFS / Graph
803Bricks Falling When HitC++HardUnion Find
804Unique Morse Code WordsC++EasyString
805Split Array With Same AverageC++HardMath
806Number of Lines To Write StringC++EasyString
807Max Increase to Keep City SkylineC++MediumArray
809Expressive WordsC++MediumString
814Binary Tree PruningC++MediumTree
815Bus RoutesC++HardBFS
819Most Common WordC++EasyString
820Short Encoding of WordsC++MediumTrie
821Shortest Distance to a CharacterC++EasyString
826Most Profit Assigning WorkC++MediumTwo Pointers / Binary Search
830Positions of Large GroupsC++EasyArray
832Flipping an ImageC++EasyArray
834Sum of Distances in TreeC++HardTree / DFS
836Rectangle OverlapC++EasyMath
841Keys and RoomsC++MediumDFS / BFS / Graph
843Guess the WordC++HardMinimax
844Backspace String CompareC++EasyStack / Two Pointers
845Longest Mountain in ArrayC++MediumTwo Pointers
846Hand of StraightsC++MediumMap
848Shifting LettersC++MediumString
849Maximize Distance to Closest PersonC++EasyArray
852Peak Index in a Mountain ArrayC++EasyBinary Search
853Car FleetC++MediumStack
855Exam RoomC++MediumMap
857Minimum Cost to Hire K WorkersC++HardHeap
859Buddy StringsC++EasyString
872Leaf-Similar TreesC++EasyTree / DFS
876Middle of the Linked ListC++EasyLinked List
884Uncommon Words from Two SentencesC++EasyHash Table
888Fair Candy SwapC++EasyArray
889Construct Binary Tree from Preorder and Postorder TraversalC++MediumTree
890Find and Replace PatternC++MediumString
894All Possible Full Binary TreesC++MediumTree / Recursion
896Monotonic ArrayC++EasyArray
900RLE IteratorC++MediumArray
904Fruit Into BasketsC++MediumTwo Pointers
911Online ElectionC++MediumBinary Search / Map
914X of a Kind in a Deck of CardsC++EasyArray / Math
916Word SubsetsC++MediumString
925Long Pressed NameC++EasyString
929Unique Email AddressesC++EasyString
932Beautiful ArrayC++MediumDivide and Conquer
933Number of Recent CallsC++EasyQueue
935Knight DialerC++MediumDynamic Programming
938Range Sum of BSTC++MediumTree
939Minimum Area RectangleC++MediumHash Table
941Valid Mountain ArrayC++EasyArray
946Validate Stack SequencesC++MediumStack
951Flip Equivalent Binary TreesC++MediumTree

About

Leetcode Python Solution. Those who Want to learn Python From Scratch check out the Website linked below. Good Luck.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp