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

♨️ Detailed Java & Python solution of LeetCode.

License

NotificationsYou must be signed in to change notification settings

KumarC873/myleetcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

authorlast commitissuesstarsforkslicense

My LeetCode Solutions!

Contributing

Contributions are very welcome!

If you see an problem that you'd like to see fixed, the best way to make it happen is to help out by submitting a pull request implementing it. Refer to theCONTRIBUTING.md file for more details about the workflow.

You can also ask for problem solving ideas and discuss in GitHub issues directly.

INDEX

Learn

Array and String

#TitleSolutionsDifficultyTag
14Longest Common PrefixJava & PythonEasyIntroduction to String
26Remove Duplicates from Sorted ArrayJava & PythonEasyConclusion
27Remove ElementJava & PythonEasyTwo-Pointer Technique
28Implement strStr()Java & PythonEasyIntroduction to String
54Spiral MatrixJava &PythonMediumIntroduction to 2D Array
66Plus OneJava &PythonEasyIntroduction to Array
67Add BinaryJava & PythonEasyIntroduction to String
118Pascal's TriangleJava &PythonEasyIntroduction to 2D Array
119Pascal's Triangle IIJava & PythonEasyConclusion
151Reverse Words in a StringJava & PythonMediumConclusion
167Two Sum II - Input array is sortedJava & PythonEasyTwo-Pointer Technique
189Rotate ArrayJava & PythonEasyConclusion
209Minimum Size Subarray SumJava & PythonMediumTwo-Pointer Technique
283Move ZeroesJava & PythonEasyConclusion
344Reverse StringJava & PythonEasyTwo-Pointer Technique
485Max Consecutive OnesJava & PythonEasyTwo-Pointer Technique
498Diagonal TraverseJava &PythonMediumIntroduction to 2D Array
557Reverse Words in a String IIIJava & PythonEasyConclusion
561Array Partition IJava & PythonEasyTwo-Pointer Technique
724Find Pivot IndexJava &PythonEasyIntroduction to Array
747Largest Number Greater Than Twice of OthersJava &PythonEasyIntroduction to Array

Queue & Stack

#TitleSolutionsDifficultyTag
20Valid ParenthesesJava & PythonEasyStack: Last-in-first-out Data Structure
133Clone GraphJava & PythonMediumStack and DFS
150Evaluate Reverse Polish NotationJava & PythonMediumStack: Last-in-first-out Data Structure
155Min StackJava & PythonEasyStack: Last-in-first-out Data Structure
200Number of IslandsJava & PythonMediumQueue and BFS
225Implement Stack using QueuesJava & PythonEasyConclusion
232Implement Queue using StacksJava & PythonEasyConclusion
279Perfect SquaresJava & PythonMediumQueue and BFS
394Decode StringJava & PythonMediumConclusion
494Target SumJava & PythonMediumStack and DFS
54201 MatrixJava & PythonMediumConclusion
622Design Circular QueueJava & PythonMediumQueue: First-in-first-out Data Structure
733Flood FillJava & PythonEasyConclusion
739Daily TemperaturesJava & PythonMediumStack: Last-in-first-out Data Structure
752Open the LockJava & PythonMediumQueue and BFS
841Keys and RoomsJava & PythonMediumConclusion

Linked List

#TitleSolutionsDifficultyTag
2Add Two NumbersJava & PythonMediumConclusion
19Remove Nth Node From End of ListJava & PythonMediumTwo Pointer Technique
21Merge Two Sorted ListsJava & PythonEasyConclusion
61Rotate ListJava & PythonMediumConclusion
135Copy List with Random PointerJava & PythonMediumConclusion
141Linked List CycleJava & PythonEasyTwo Pointer Technique
142Linked List Cycle IIJava & PythonMediumTwo Pointer Technique
160Intersection of Two Linked ListsJava & PythonEasyTwo Pointer Technique
203Remove Linked List ElementsJava & PythonEasyClassic Problems
206Reverse Linked ListJava & PythonEasyClassic Problems
234Palindrome Linked ListJava & PythonEasyClassic Problems
328Odd Even Linked ListJava & PythonMediumClassic Problems
430Flatten a Multilevel Doubly Linked ListJava & PythonMediumConclusion
707Design Linked ListJava & PythonEasySingly Linked List

Hash Table

#TitleSolutionsDifficultyTag
1Two SumJava & PythonEasyPractical Application - Hash Map
3Longest Substring Without Repeating CharactersJava & PythonMediumConclusion
36Valid SudokuJava & PythonMediumPractical Application - Design the Key
49Group AnagramsJava & PythonMediumPractical Application - Design the Key
136Single NumberJava & PythonEasyPractical Application - Hash Set
202Happy NumberJava & PythonEasyPractical Application - Hash Set
205Isomorphic StringsJava & PythonEasyPractical Application - Hash Map
217Contains DuplicateJava & PythonEasyPractical Application - Hash Set
219Contains Duplicate IIJava & PythonEasyPractical Application - Hash Map
347Top K Frequent ElementsJava & PythonMediumConclusion
349Intersection of Two ArraysJava & PythonEasyPractical Application - Hash Set
350Intersection of Two Arrays IIJava & PythonEasyPractical Application - Hash Map
380Insert Delete GetRandom O(1)Java & PythonMediumConclusion
387First Unique Character in a StringJava & PythonEasyPractical Application - Hash Map
4544Sum IIJava & PythonMediumConclusion
599Minimum Index Sum of Two ListsJava & PythonEasyPractical Application - Hash Map
652Find Duplicate SubtreesJava & PythonMediumPractical Application - Design the Key
705Design HashSetJava & PythonEasyDesign a Hash Table
706Design HashMapJava & PythonEasyDesign a Hash Table
771Jewels and StonesJava & PythonEasyConclusion

Binary Search

#TitleSolutionsDifficultyTag
4Median of Two Sorted ArraysJava & PythonHardMore Practices II
33Search in Rotated Sorted ArrayJava &PythonMediumTemplate I
34Find First and Last Position of Element in Sorted ArrayJava & PythonMediumTemplate III
50Pow(x, n)Java & PythonMediumConclusion
69Sqrt(x)Java &PythonEasyTemplate I
153Find Minimum in Rotated Sorted ArrayJava & PythonMediumTemplate II
154Find Minimum in Rotated Sorted Array IIJava & PythonHardMore Practices
162Find Peak ElementJava & PythonMediumTemplate II
167Two Sum II - Input array is sortedJava & PythonEasyMore Practices
278First Bad VersionJava &PythonEasyTemplate II
287Find the Duplicate NumberJava & PythonMediumMore Practices II
349Intersection of Two ArraysJava & PythonEasyMore Practices
350Intersection of Two Arrays IIJava & PythonEasyMore Practices
367Valid Perfect SquareJava & PythonEasyConclusion
374Guess Number Higher or LowerJava &PythonEasyTemplate I
410Split Array Largest SumJava & PythonHardMore Practices II
658Find K Closest ElementsJava & PythonMediumTemplate III
704Binary SearchJava &PythonEasyBackground
719Find K-th Smallest Pair DistanceJava & PythonHardMore Practices II
744Find Smallest Letter Greater Than TargetJava & PythonEasyConclusion

Binary Tree

#TitleSolutionsDifficultyTag
94Binary Tree Inorder TraversalJava & PythonMediumTraverse A Tree
101Symmetric TreeJava & PythonEasySolve Tree Problems Recursively
102Binary Tree Level Order TraversalJava & PythonMediumTraverse A Tree
104Maximum Depth of Binary TreeJava & PythonEasySolve Tree Problems Recursively
105Construct Binary Tree from Preorder and Inorder TraversalJava & PythonMediumConclusion
106Construct Binary Tree from Inorder and Postorder TraversalJava & PythonMediumConclusion
112Path SumJava & PythonEasySolve Tree Problems Recursively
116Populating Next Right Pointers in Each NodeJava & PythonMediumConclusion
117Populating Next Right Pointers in Each Node IIJava & PythonMediumConclusion
144Binary Tree Preorder TraversalJava & PythonMediumTraverse A Tree
145Binary Tree Postorder TraversalJava & PythonHardTraverse A Tree
236Lowest Common Ancestor of a Binary TreeJava & PythonMediumConclusion
297Serialize and Deserialize Binary TreeJava & PythonMediumConclusion

Binary Search Tree

#TitleSolutionsDifficultyTag
98Validate Binary Search TreeJava & PythonMediumIntroduction to BST
108Convert Sorted Array to Binary Search TreeJava & PythonEasyAppendix: Height-balanced BST
110Balanced Binary TreeJava & PythonEasyAppendix: Height-balanced BST
173Binary Search Tree IteratorJava & PythonMediumIntroduction to BST
220Contains Duplicate IIIJava & PythonMediumConclusion
235Lowest Common Ancestor of a Binary Search TreeJava & PythonEasyConclusion
450Delete Node in a BSTJava & PythonMediumBasic Operations in BST
700Search in a Binary Search TreeJava & PythonEasyBasic Operations in BST
701Insert into a Binary Search TreeJava & PythonMediumBasic Operations in BST
703Kth Largest Element in a StreamJava & PythonEasyConclusion

N-ary Tree

#TitleSolutionsDifficultyTag
429N-ary Tree Level Order TraversalJava & PythonEasyTraversal
559Maximum Depth of N-ary TreeJava & PythonEasyRecursion
589N-ary Tree Preorder TraversalJava & PythonEasyTraversal
590N-ary Tree Postorder TraversalJava & PythonEasyTraversal

Trie (Prefix Tree)

#TitleSolutionsDifficultyTag
208Implement Trie (Prefix Tree)Java & PythonMediumBasic Operations
211Add and Search Word - Data structure designJava & PythonMediumPractical Application I
212Word Search IIJava & PythonHardPractical Application II
336Palindrome PairsJava & PythonHardPractical Application II
421Maximum XOR of Two Numbers in an ArrayJava & PythonMediumPractical Application II
648Replace WordsJava & PythonMediumPractical Application I
677Map Sum PairsJava & PythonMediumPractical Application I

Decision Tree

#TitleSolutionsDifficultyTag
###Calculate EntropyJava & PythonEasyImplementation
###Calculate Maximum Information GainJava & PythonEasyImplementation

Recursion I

#TitleSolutionsDifficultyTag
21Merge Two Sorted ListsJava & PythonEasyConclusion
24Swap Nodes in PairsJava & PythonMediumPrinciple of Recursion
50Pow(x, n)Java & PythonMediumComplexity Analysis
70Climbing StairsJava & PythonEasyMemoization
95Unique Binary Search Trees IIJava & PythonMediumConclusion
104Maximum Depth of Binary TreeJava & PythonEasyComplexity Analysis
118Pascal's TriangleJava & PythonEasyRecurrence Relation
119Pascal's Triangle IIJava & PythonEasyRecurrence Relation
206Reverse Linked ListJava & PythonEasyRecurrence Relation
344Reverse StringJava & PythonEasyPrinciple of Recursion
509Fibonacci NumberJava & PythonEasyMemoization
779K-th Symbol in GrammarJava & PythonMediumConclusion

Recursion II

#TitleSolutionsDifficultyTag
17Letter Combinations of a Phone NumberJava & PythonMediumConclusion
22Generate ParenthesesJava & PythonMediumRecursion to Iteration
37Sudoku SolverJava & PythonHardBacktracking
46PermutationsJava & PythonMediumConclusion
52N-Queens IIJava & PythonHardBacktracking
77CombinationsJava & PythonMediumBacktracking
84Largest Rectangle in HistogramJava & PythonHardConclusion
94Binary Tree Inorder TraversalJava & PythonMediumRecursion to Iteration
98Validate Binary Search TreeJava & PythonMediumDivide and Conquer
100Same TreeJava & PythonEasyRecursion to Iteration
102Binary Tree Level Order TraversalJava & PythonMediumRecursion to Iteration
218The Skyline ProblemJava & PythonHardConclusion
240Search a 2D Matrix IIJava & PythonMediumDivide and Conquer
912Sort an ArrayJava & PythonMediumDivide and Conquer

Concurrency

#TitleSolutionsDifficultyTag
1114Print in OrderJava & PythonEasyConcurrency
1115Print FooBar AlternatelyJava & PythonMediumConcurrency
1116Print Zero Even OddJava & PythonMediumConcurrency
1117Building H2OJava & PythonMediumConcurrency
1195Fizz Buzz MultithreadedJava & PythonMediumConcurrency
1226The Dining PhilosophersJava & PythonMediumConcurrency

Others

#TitleSolutionsDifficultyTag
6ZigZag ConversionJava & PythonMediumOthers
9Palindrome NumberJava & PythonEasyOthers
12Integer to RomanJava & PythonMediumOthers
163Sum ClosestJava & PythonMediumOthers
184SumJava & PythonMediumOthers
25Reverse Nodes in k-GroupJava & PythonHardOthers
30Substring with Concatenation of All WordsJava & PythonHardOthers
31Next PermutationJava & PythonMediumOthers
32Longest Valid ParenthesesJava & PythonHardOthers
35Search Insert PositionJava & PythonEasyOthers
39Combination SumJava & PythonMediumOthers
40Combination Sum IIJava & PythonMediumOthers
43Multiply StringsJava & PythonMediumOthers
45Jump Game IIJava & PythonHardOthers
47Permutations IIJava & PythonMediumOthers
51N-QueensJava & PythonHardOthers
57Insert IntervalJava & PythonHardOthers
58Length of Last WordJava & PythonEasyOthers
59Spiral Matrix IIJava & PythonMediumOthers
60Permutation SequenceJava & PythonMediumOthers
63Unique Paths IIJava & PythonMediumOthers
64Minimum Path SumJava & PythonMediumOthers
65Valid NumberJava & PythonHardOthers
68Text JustificationJava & PythonHardOthers
71Simplify PathJava & PythonMediumOthers
72Edit DistanceJava & PythonHardOthers
74Search a 2D MatrixJava & PythonMediumOthers
80Remove Duplicates from Sorted Array IIJava & PythonMediumOthers
81Search in Rotated Sorted Array IIJava & PythonMediumOthers
82Remove Duplicates from Sorted List IIJava & PythonMediumOthers
83Remove Duplicates from Sorted ListJava & PythonEasyOthers
85Maximal RectangleJava & PythonHardOthers
86Partition ListJava & PythonMediumOthers
87Scramble StringJava & PythonHardOthers
89Gray CodeJava & PythonMediumOthers
90Subsets IIJava & PythonMediumOthers
92Reverse Linked List IIJava & PythonMediumOthers
93Restore IP AddressesJava & PythonMediumOthers
96Unique Binary Search TreesJava & PythonMediumOthers
97Interleaving StringJava & PythonHardOthers
99Recover Binary Search TreeJava & PythonHardOthers
107Binary Tree Level Order Traversal IIJava & PythonEasyOthers
109Convert Sorted List to Binary Search TreeJava & PythonMediumOthers
111Minimum Depth of Binary TreeJava & PythonEasyOthers
113Path Sum IIJava & PythonMediumOthers
114Flatten Binary Tree to Linked ListJava & PythonMediumOthers
115Distinct SubsequencesJava & PythonHardOthers
120TriangleJava & PythonMediumOthers
123Best Time to Buy and Sell Stock IIIJava & PythonHardOthers
126Word Ladder IIJava & PythonHardOthers
129Sum Root to Leaf NumbersJava & PythonMediumOthers
132Palindrome Partitioning IIJava & PythonHardOthers
134Gas StationJava & PythonMediumOthers
135CandyJava & PythonHardOthers
137Single Number IIJava & PythonMediumOthers
143Reorder ListJava & PythonMediumOthers
147Insertion Sort ListJava & PythonMediumOthers
164Maximum GapJava & PythonHardOthers
165Compare Version NumbersJava & PythonMediumOthers
168Excel Sheet Column TitleJava & PythonEasyOthers
174Dungeon GameJava & PythonHardOthers
187Repeated DNA SequencesJava & PythonMediumOthers
188Best Time to Buy and Sell Stock IVJava & PythonHardOthers
199Binary Tree Right Side ViewJava & PythonMediumOthers
201Bitwise AND of Numbers RangeJava & PythonMediumOthers
213House Robber IIJava & PythonMediumOthers
214Shortest PalindromeJava & PythonHardOthers
216Combination Sum IIIJava & PythonMediumOthers
221Maximal SquareJava & PythonMediumOthers
222Count Complete Tree NodesJava & PythonMediumOthers
223Rectangle AreaJava & PythonMediumOthers
224Basic CalculatorJava & PythonHardOthers
226Invert Binary TreeJava & PythonEasyOthers
228Summary RangesJava & PythonMediumOthers
229Majority Element IIJava & PythonMediumOthers
231Power of TwoJava & PythonEasyOthers
233Number of Digit OneJava & PythonHardOthers
241Different Ways to Add ParenthesesJava & PythonMediumOthers
257Binary Tree PathsJava & PythonEasyOthers
258Add DigitsJava & PythonEasyOthers
260Single Number IIIJava & PythonMediumOthers
263Ugly NumberJava & PythonEasyOthers
264Ugly Number IIJava & PythonMediumOthers
273Integer to English WordsJava & PythonHardOthers
274H-IndexJava & PythonMediumOthers
275H-Index IIJava & PythonMediumOthers
282Expression Add OperatorsJava & PythonHardOthers
284Peeking IteratorJava & PythonMediumOthers
290Word PatternJava & PythonEasyOthers
292Nim GameJava & PythonEasyOthers
299Bulls and CowsJava & PythonEasyOthers
303Range Sum Query - ImmutableJava & PythonEasyOthers
304Range Sum Query 2D - ImmutableJava & PythonMediumOthers
306Additive NumberJava & PythonMediumOthers
307Range Sum Query - MutableJava & PythonMediumOthers
310Minimum Height TreesJava & PythonMediumOthers
313Super Ugly NumberJava & PythonMediumOthers
316Remove Duplicate LettersJava & PythonHardOthers
318Maximum Product of Word LengthsJava & PythonMediumOthers
319Bulb SwitcherJava & PythonMediumOthers
321Create Maximum NumberJava & PythonHardOthers
327Count of Range SumJava & PythonHardOthers
330Patching ArrayJava & PythonHardOthers
331Verify Preorder Serialization of a Binary TreeJava & PythonMediumOthers
332Reconstruct ItineraryJava & PythonMediumOthers
335Self CrossingJava & PythonHardOthers
337House Robber IIIJava & PythonMediumOthers
338Counting BitsJava & PythonMediumOthers
342Power of FourJava & PythonEasyOthers
343Integer BreakJava & PythonMediumOthers
345Reverse Vowels of a StringJava & PythonEasyOthers
352Data Stream as Disjoint IntervalsJava & PythonHardOthers
354Russian Doll EnvelopesJava & PythonHardOthers
355Design TwitterJava & PythonMediumOthers
357Count Numbers with Unique DigitsJava & PythonMediumOthers
363Max Sum of Rectangle No Larger Than KJava & PythonHardOthers
365Water and Jug ProblemJava & PythonMediumOthers
368Largest Divisible SubsetJava & PythonMediumOthers
372Super PowJava & PythonMediumOthers
373Find K Pairs with Smallest SumsJava & PythonMediumOthers
375Guess Number Higher or Lower IIJava & PythonMediumOthers
376Wiggle SubsequenceJava & PythonMediumOthers
377Combination Sum IVJava & PythonMediumOthers
381Insert Delete GetRandom O(1) - Duplicates allowedJava & PythonHardOthers
382Linked List Random NodeJava & PythonMediumOthers
383Ransom NoteJava & PythonEasyOthers
385Mini ParserJava & PythonMediumOthers
386Lexicographical NumbersJava & PythonMediumOthers
388Longest Absolute File PathJava & PythonMediumOthers
389Find the DifferenceJava & PythonEasyOthers
390Elimination GameJava & PythonMediumOthers
391Perfect RectangleJava & PythonHardOthers
392Is SubsequenceJava & PythonEasyOthers
393UTF-8 ValidationJava & PythonMediumOthers
395Longest Substring with At Least K Repeating CharactersJava & PythonMediumOthers
396Rotate FunctionJava & PythonMediumOthers
397Integer ReplacementJava & PythonMediumOthers
398Random Pick IndexJava & PythonMediumOthers
399Evaluate DivisionJava & PythonMediumOthers
400Nth DigitJava & PythonMediumOthers
401Binary WatchJava & PythonEasyOthers
402Remove K DigitsJava & PythonMediumOthers
403Frog JumpJava & PythonHardOthers
404Sum of Left LeavesJava & PythonEasyOthers
405Convert a Number to HexadecimalJava & PythonEasyOthers
407Trapping Rain Water IIJava & PythonHardOthers
409Longest PalindromeJava & PythonEasyOthers
413Arithmetic SlicesJava & PythonMediumOthers
414Third Maximum NumberJava & PythonEasyOthers
415Add StringsJava & PythonEasyOthers
416Partition Equal Subset SumJava & PythonMediumOthers
417Pacific Atlantic Water FlowJava & PythonMediumOthers
419Battleships in a BoardJava & PythonMediumOthers
420Strong Password CheckerJava & PythonHardOthers
423Reconstruct Original Digits from EnglishJava & PythonMediumOthers
424Longest Repeating Character ReplacementJava & PythonMediumOthers
427Construct Quad TreeJava & PythonMediumOthers
432All O`one Data StructureJava & PythonHardOthers
433Minimum Genetic MutationJava & PythonMediumOthers
434Number of Segments in a StringJava & PythonEasyOthers
435Non-overlapping IntervalsJava & PythonMediumOthers
436Find Right IntervalJava & PythonMediumOthers
437Path Sum IIIJava & PythonEasyOthers
438Find All Anagrams in a StringJava & PythonMediumOthers
440K-th Smallest in Lexicographical OrderJava & PythonHardOthers
441Arranging CoinsJava & PythonEasyOthers
442Find All Duplicates in an ArrayJava & PythonMediumOthers
443String CompressionJava & PythonEasyOthers
445Add Two Numbers IIJava & PythonMediumOthers
446Arithmetic Slices II - SubsequenceJava & PythonHardOthers
447Number of BoomerangsJava & PythonEasyOthers
448Find All Numbers Disappeared in an ArrayJava & PythonEasyOthers
449Serialize and Deserialize BSTJava & PythonMediumOthers
451Sort Characters By FrequencyJava & PythonMediumOthers
452Minimum Number of Arrows to Burst BalloonsJava & PythonMediumOthers
453Minimum Moves to Equal Array ElementsJava & PythonEasyOthers
455Assign CookiesJava & PythonEasyOthers
456132 PatternJava & PythonMediumOthers
457Circular Array LoopJava & PythonMediumOthers
458Poor PigsJava & PythonHardOthers
459Repeated Substring PatternJava & PythonEasyOthers
460LFU CacheJava & PythonHardOthers
462Minimum Moves to Equal Array Elements IIJava & PythonMediumOthers
463Island PerimeterJava & PythonEasyOthers
464Can I WinJava & PythonMediumOthers
466Count The RepetitionsJava & PythonHardOthers
467Unique Substrings in Wraparound StringJava & PythonMediumOthers
468Validate IP AddressJava & PythonMediumOthers
470Implement Rand10() Using Rand7()Java & PythonMediumOthers
472Concatenated WordsJava & PythonHardOthers
473Matchsticks to SquareJava & PythonMediumOthers
474Ones and ZeroesJava & PythonMediumOthers
475HeatersJava & PythonEasyOthers
476Number ComplementJava & PythonEasyOthers
477Total Hamming DistanceJava & PythonMediumOthers
478Generate Random Point in a CircleJava & PythonMediumOthers
479Largest Palindrome ProductJava & PythonHardOthers
480Sliding Window MedianJava & PythonHardOthers
481Magical StringJava & PythonMediumOthers
482License Key FormattingJava & PythonEasyOthers
483Smallest Good BaseJava & PythonHardOthers
486Predict the WinnerJava & PythonMediumOthers
488Zuma GameJava & PythonHardOthers
491Increasing SubsequencesJava & PythonMediumOthers
492Construct the RectangleJava & PythonEasyOthers
493Reverse PairsJava & PythonHardOthers
495Teemo AttackingJava & PythonMediumOthers
496Next Greater Element IJava & PythonEasyOthers
497Random Point in Non-overlapping RectanglesJava & PythonMediumOthers
500Keyboard RowJava & PythonEasyOthers
501Find Mode in Binary Search TreeJava & PythonEasyOthers
502IPOJava & PythonHardOthers
503Next Greater Element IIJava & PythonMediumOthers
504Base 7Java & PythonEasyOthers
506Relative RanksJava & PythonEasyOthers
507Perfect NumberJava & PythonEasyOthers
508Most Frequent Subtree SumJava & PythonMediumOthers
513Find Bottom Left Tree ValueJava & PythonMediumOthers
514Freedom TrailJava & PythonHardOthers
515Find Largest Value in Each Tree RowJava & PythonMediumOthers
516Longest Palindromic SubsequenceJava & PythonMediumOthers
517Super Washing MachinesJava & PythonHardOthers
518Coin Change 2Java & PythonMediumOthers
519Random Flip MatrixJava & PythonMediumOthers
520Detect CapitalJava & PythonEasyOthers
521Longest Uncommon Subsequence IJava & PythonEasyOthers
522Longest Uncommon Subsequence IIJava & PythonMediumOthers
523Continuous Subarray SumJava & PythonMediumOthers
524Longest Word in Dictionary through DeletingJava & PythonMediumOthers
525Contiguous ArrayJava & PythonMediumOthers
526Beautiful ArrangementJava & PythonMediumOthers
528Random Pick with WeightJava & PythonMediumOthers
529MinesweeperJava & PythonMediumOthers
530Minimum Absolute Difference in BSTJava & PythonEasyOthers
532K-diff Pairs in an ArrayJava & PythonEasyOthers
535Encode and Decode TinyURLJava & PythonMediumOthers
537Complex Number MultiplicationJava & PythonMediumOthers
538Convert BST to Greater TreeJava & PythonEasyOthers
539Minimum Time DifferenceJava & PythonMediumOthers
540Single Element in a Sorted ArrayJava & PythonMediumOthers
541Reverse String IIJava & PythonEasyOthers
543Diameter of Binary TreeJava & PythonEasyOthers
546Remove BoxesJava & PythonHardOthers
551Student Attendance Record IJava & PythonEasyOthers
552Student Attendance Record IIJava & PythonHardOthers
553Optimal DivisionJava & PythonMediumOthers
554Brick WallJava & PythonMediumOthers
556Next Greater Element IIIJava & PythonMediumOthers
558Quad Tree IntersectionJava & PythonEasyOthers
560Subarray Sum Equals KJava & PythonMediumOthers
563Binary Tree TiltJava & PythonEasyOthers
564Find the Closest PalindromeJava & PythonHardOthers
565Array NestingJava & PythonMediumOthers
566Reshape the MatrixJava & PythonEasyOthers
567Permutation in StringJava & PythonMediumOthers
572Subtree of Another TreeJava & PythonEasyOthers
575Distribute CandiesJava & PythonEasyOthers
576Out of Boundary PathsJava & PythonMediumOthers
581Shortest Unsorted Continuous SubarrayJava & PythonEasyOthers
583Delete Operation for Two StringsJava & PythonMediumOthers
587Erect the FenceJava & PythonHardOthers
591Tag ValidatorJava & PythonHardOthers
592Fraction Addition and SubtractionJava & PythonMediumOthers
593Valid SquareJava & PythonMediumOthers
594Longest Harmonious SubsequenceJava & PythonEasyOthers
598Range Addition IIJava & PythonEasyOthers
600Non-negative Integers without Consecutive OnesJava & PythonHardOthers
605Can Place FlowersJava & PythonEasyOthers
606Construct String from Binary TreeJava & PythonEasyOthers
609Find Duplicate File in SystemJava & PythonMediumOthers
611Valid Triangle NumberJava & PythonMediumOthers
617Merge Two Binary TreesJava & PythonEasyOthers
623Add One Row to TreeJava & PythonMediumOthers
628Maximum Product of Three NumbersJava & PythonEasyOthers
629K Inverse Pairs ArrayJava & PythonHardOthers
630Course Schedule IIIJava & PythonHardOthers
632Smallest Range Covering Elements from K ListsJava & PythonHardOthers
633Sum of Square NumbersJava & PythonEasyOthers
636Exclusive Time of FunctionsJava & PythonMediumOthers
637Average of Levels in Binary TreeJava & PythonEasyOthers
638Shopping OffersJava & PythonMediumOthers
639Decode Ways IIJava & PythonHardOthers
640Solve the EquationJava & PythonMediumOthers
641Design Circular DequeJava & PythonMediumOthers
643Maximum Average Subarray IJava & PythonEasyOthers
645Set MismatchJava & PythonEasyOthers
646Maximum Length of Pair ChainJava & PythonMediumOthers
647Palindromic SubstringsJava & PythonMediumOthers
649Dota2 SenateJava & PythonMediumOthers
6502 Keys KeyboardJava & PythonMediumOthers
653Two Sum IV - Input is a BSTJava & PythonEasyOthers
654Maximum Binary TreeJava & PythonMediumOthers
655Print Binary TreeJava & PythonMediumOthers
657Robot Return to OriginJava & PythonEasyOthers
659Split Array into Consecutive SubsequencesJava & PythonMediumOthers
661Image SmootherJava & PythonEasyOthers
662Maximum Width of Binary TreeJava & PythonMediumOthers
664Strange PrinterJava & PythonHardOthers
665Non-decreasing ArrayJava & PythonEasyOthers
667Beautiful Arrangement IIJava & PythonMediumOthers
668Kth Smallest Number in Multiplication TableJava & PythonHardOthers
669Trim a Binary Search TreeJava & PythonEasyOthers
670Maximum SwapJava & PythonMediumOthers
671Second Minimum Node In a Binary TreeJava & PythonEasyOthers
672Bulb Switcher IIJava & PythonMediumOthers
673Number of Longest Increasing SubsequenceJava & PythonMediumOthers
674Longest Continuous Increasing SubsequenceJava & PythonEasyOthers
675Cut Off Trees for Golf EventJava & PythonHardOthers
676Implement Magic DictionaryJava & PythonMediumOthers
678Valid Parenthesis StringJava & PythonMediumOthers
67924 GameJava & PythonHardOthers
680Valid Palindrome IIJava & PythonEasyOthers
682Baseball GameJava & PythonEasyOthers
684Redundant ConnectionJava & PythonMediumOthers
685Redundant Connection IIJava & PythonHardOthers
686Repeated String MatchJava & PythonEasyOthers
687Longest Univalue PathJava & PythonEasyOthers
688Knight Probability in ChessboardJava & PythonMediumOthers
689Maximum Sum of 3 Non-Overlapping SubarraysJava & PythonHardOthers
690Employee ImportanceJava & PythonEasyOthers
691Stickers to Spell WordJava & PythonHardOthers
692Top K Frequent WordsJava & PythonMediumOthers
693Binary Number with Alternating BitsJava & PythonEasyOthers
695Max Area of IslandJava & PythonMediumOthers
696Count Binary SubstringsJava & PythonEasyOthers
697Degree of an ArrayJava & PythonEasyOthers
698Partition to K Equal Sum SubsetsJava & PythonMediumOthers
699Falling SquaresJava & PythonHardOthers
709To Lower CaseJava & PythonEasyOthers
710Random Pick with BlacklistJava & PythonHardOthers
712Minimum ASCII Delete Sum for Two StringsJava & PythonMediumOthers
713Subarray Product Less Than KJava & PythonMediumOthers
714Best Time to Buy and Sell Stock with Transaction FeeJava & PythonMediumOthers
715Range ModuleJava & PythonHardOthers
7171-bit and 2-bit CharactersJava & PythonEasyOthers
718Maximum Length of Repeated SubarrayJava & PythonMediumOthers
720Longest Word in DictionaryJava & PythonEasyOthers
721Accounts MergeJava & PythonMediumOthers
722Remove CommentsJava & PythonMediumOthers
725Split Linked List in PartsJava & PythonMediumOthers
726Number of AtomsJava & PythonHardOthers
728Self Dividing NumbersJava & PythonEasyOthers
729My Calendar IJava & PythonMediumOthers
730Count Different Palindromic SubsequencesJava & PythonHardOthers
731My Calendar IIJava & PythonMediumOthers
732My Calendar IIIJava & PythonHardOthers
735Asteroid CollisionJava & PythonMediumOthers
736Parse Lisp ExpressionJava & PythonHardOthers
738Monotone Increasing DigitsJava & PythonMediumOthers
740Delete and EarnJava & PythonMediumOthers
741Cherry PickupJava & PythonHardOthers
743Network Delay TimeJava & PythonMediumOthers
745Prefix and Suffix SearchJava & PythonHardOthers
746Min Cost Climbing StairsJava & PythonEasyOthers
748Shortest Completing WordJava & PythonEasyOthers
749Contain VirusJava & PythonHardOthers
753Cracking the SafeJava & PythonHardOthers
754Reach a NumberJava & PythonEasyOthers
756Pyramid Transition MatrixJava & PythonMediumOthers
757Set Intersection Size At Least TwoJava & PythonHardOthers
761Special Binary StringJava & PythonHardOthers
762Prime Number of Set Bits in Binary RepresentationJava & PythonEasyOthers
763Partition LabelsJava & PythonMediumOthers
764Largest Plus SignJava & PythonMediumOthers
765Couples Holding HandsJava & PythonHardOthers
766Toeplitz MatrixJava & PythonEasyOthers
767Reorganize StringJava & PythonMediumOthers
768Max Chunks To Make Sorted IIJava & PythonHardOthers
769Max Chunks To Make SortedJava & PythonMediumOthers
770Basic Calculator IVJava & PythonHardOthers
773Sliding PuzzleJava & PythonHardOthers
775Global and Local InversionsJava & PythonMediumOthers
777Swap Adjacent in LR StringJava & PythonMediumOthers
778Swim in Rising WaterJava & PythonHardOthers
780Reaching PointsJava & PythonHardOthers
781Rabbits in ForestJava & PythonMediumOthers
782Transform to ChessboardJava & PythonHardOthers
783Minimum Distance Between BST NodesJava & PythonEasyOthers
784Letter Case PermutationJava & PythonEasyOthers
785Is Graph Bipartite?Java & PythonMediumOthers
786K-th Smallest Prime FractionJava & PythonHardOthers
787Cheapest Flights Within K StopsJava & PythonMediumOthers
788Rotated DigitsJava & PythonEasyOthers
789Escape The GhostsJava & PythonMediumOthers
790Domino and Tromino TilingJava & PythonMediumOthers
791Custom Sort StringJava & PythonMediumOthers
792Number of Matching SubsequencesJava & PythonMediumOthers
793Preimage Size of Factorial Zeroes FunctionJava & PythonHardOthers
794Valid Tic-Tac-Toe StateJava & PythonMediumOthers
795Number of Subarrays with Bounded MaximumJava & PythonMediumOthers
796Rotate StringJava & PythonEasyOthers
797All Paths From Source to TargetJava & PythonMediumOthers
798Smallest Rotation with Highest ScoreJava & PythonHardOthers
799Champagne TowerJava & PythonMediumOthers
801Minimum Swaps To Make Sequences IncreasingJava & PythonMediumOthers
802Find Eventual Safe StatesJava & PythonMediumOthers
803Bricks Falling When HitJava & PythonHardOthers
804Unique Morse Code WordsJava & PythonEasyOthers
805Split Array With Same AverageJava & PythonHardOthers
806Number of Lines To Write StringJava & PythonEasyOthers
807Max Increase to Keep City SkylineJava & PythonMediumOthers
808Soup ServingsJava & PythonMediumOthers
809Expressive WordsJava & PythonMediumOthers
810Chalkboard XOR GameJava & PythonHardOthers
811Subdomain Visit CountJava & PythonEasyOthers
812Largest Triangle AreaJava & PythonEasyOthers
813Largest Sum of AveragesJava & PythonMediumOthers
814Binary Tree PruningJava & PythonMediumOthers
815Bus RoutesJava & PythonHardOthers
816Ambiguous CoordinatesJava & PythonMediumOthers
817Linked List ComponentsJava & PythonMediumOthers
818Race CarJava & PythonHardOthers
819Most Common WordJava & PythonEasyOthers
820Short Encoding of WordsJava & PythonMediumOthers
821Shortest Distance to a CharacterJava & PythonEasyOthers
822Card Flipping GameJava & PythonMediumOthers
823Binary Trees With FactorsJava & PythonMediumOthers
824Goat LatinJava & PythonEasyOthers
825Friends Of Appropriate AgesJava & PythonMediumOthers
826Most Profit Assigning WorkJava & PythonMediumOthers
827Making A Large IslandJava & PythonHardOthers
828Unique Letter StringJava & PythonHardOthers
829Consecutive Numbers SumJava & PythonHardOthers
830Positions of Large GroupsJava & PythonEasyOthers
831Masking Personal InformationJava & PythonMediumOthers
832Flipping an ImageJava & PythonEasyOthers
833Find And Replace in StringJava & PythonMediumOthers
834Sum of Distances in TreeJava & PythonHardOthers
835Image OverlapJava & PythonMediumOthers
836Rectangle OverlapJava & PythonEasyOthers
837New 21 GameJava & PythonMediumOthers
838Push DominoesJava & PythonMediumOthers
839Similar String GroupsJava & PythonHardOthers
840Magic Squares In GridJava & PythonEasyOthers
842Split Array into Fibonacci SequenceJava & PythonMediumOthers
843Guess the WordJava & PythonHardOthers
844Backspace String CompareJava & PythonEasyOthers
845Longest Mountain in ArrayJava & PythonMediumOthers
846Hand of StraightsJava & PythonMediumOthers
847Shortest Path Visiting All NodesJava & PythonHardOthers
848Shifting LettersJava & PythonMediumOthers
849Maximize Distance to Closest PersonJava & PythonEasyOthers
850Rectangle Area IIJava & PythonHardOthers
851Loud and RichJava & PythonMediumOthers
852Peak Index in a Mountain ArrayJava & PythonEasyOthers
853Car FleetJava & PythonMediumOthers
854K-Similar StringsJava & PythonHardOthers
855Exam RoomJava & PythonMediumOthers
856Score of ParenthesesJava & PythonMediumOthers
857Minimum Cost to Hire K WorkersJava & PythonHardOthers
858Mirror ReflectionJava & PythonMediumOthers
859Buddy StringsJava & PythonEasyOthers
860Lemonade ChangeJava & PythonEasyOthers
861Score After Flipping MatrixJava & PythonMediumOthers
862Shortest Subarray with Sum at Least KJava & PythonHardOthers
863All Nodes Distance K in Binary TreeJava & PythonMediumOthers
864Shortest Path to Get All KeysJava & PythonHardOthers
865Smallest Subtree with all the Deepest NodesJava & PythonMediumOthers
866Prime PalindromeJava & PythonMediumOthers
867Transpose MatrixJava & PythonEasyOthers
868Binary GapJava & PythonEasyOthers
869Reordered Power of 2Java & PythonMediumOthers
870Advantage ShuffleJava & PythonMediumOthers
871Minimum Number of Refueling StopsJava & PythonHardOthers
872Leaf-Similar TreesJava & PythonEasyOthers
873Length of Longest Fibonacci SubsequenceJava & PythonMediumOthers
874Walking Robot SimulationJava & PythonEasyOthers
875Koko Eating BananasJava & PythonMediumOthers
876Middle of the Linked ListJava & PythonEasyOthers
877Stone GameJava & PythonMediumOthers
878Nth Magical NumberJava & PythonHardOthers
879Profitable SchemesJava & PythonHardOthers
880Decoded String at IndexJava & PythonMediumOthers
881Boats to Save PeopleJava & PythonMediumOthers
882Reachable Nodes In Subdivided GraphJava & PythonHardOthers
883Projection Area of 3D ShapesJava & PythonEasyOthers
884Uncommon Words from Two SentencesJava & PythonEasyOthers
885Spiral Matrix IIIJava & PythonMediumOthers
886Possible BipartitionJava & PythonMediumOthers
887Super Egg DropJava & PythonHardOthers
888Fair Candy SwapJava & PythonEasyOthers
889Construct Binary Tree from Preorder and Postorder TraversalJava & PythonMediumOthers
890Find and Replace PatternJava & PythonMediumOthers
891Sum of Subsequence WidthsJava & PythonHardOthers
892Surface Area of 3D ShapesJava & PythonEasyOthers
893Groups of Special-Equivalent StringsJava & PythonEasyOthers
894All Possible Full Binary TreesJava & PythonMediumOthers
895Maximum Frequency StackJava & PythonHardOthers
896Monotonic ArrayJava & PythonEasyOthers
897Increasing Order Search TreeJava & PythonEasyOthers
898Bitwise ORs of SubarraysJava & PythonMediumOthers
899Orderly QueueJava & PythonHardOthers
900RLE IteratorJava & PythonMediumOthers
901Online Stock SpanJava & PythonMediumOthers
902Numbers At Most N Given Digit SetJava & PythonHardOthers
903Valid Permutations for DI SequenceJava & PythonHardOthers
904Fruit Into BasketsJava & PythonMediumOthers
905Sort Array By ParityJava & PythonEasyOthers
906Super PalindromesJava & PythonHardOthers
907Sum of Subarray MinimumsJava & PythonMediumOthers
908Smallest Range IJava & PythonEasyOthers
909Snakes and LaddersJava & PythonMediumOthers
910Smallest Range IIJava & PythonMediumOthers
911Online ElectionJava & PythonMediumOthers
913Cat and MouseJava & PythonHardOthers
914X of a Kind in a Deck of CardsJava & PythonEasyOthers
915Partition Array into Disjoint IntervalsJava & PythonMediumOthers

Shell

#TitleSolutionsDifficultyTag
192Word FrequencybashMediumShell
193Valid Phone NumbersbashEasyShell
194Transpose FilebashMediumShell
195Tenth LinebashEasyShell

Database

#TitleSolutionsDifficultyTag
175Combine Two TablesMySQLEasyDatabase
176Second Highest SalaryMySQLEasyDatabase
177Nth Highest SalaryMySQLMediumDatabase
178Rank ScoresMySQLMediumDatabase
180Consecutive NumbersMySQLMediumDatabase
181Employees Earning More Than Their ManagersMySQLEasyDatabase
182Duplicate EmailsMySQLEasyDatabase
183Customers Who Never OrderMySQLEasyDatabase
184Department Highest SalaryMySQLMediumDatabase
185Department Top Three SalariesMySQLHardDatabase
196Delete Duplicate EmailsMySQLEasyDatabase
197Rising TemperatureMySQLEasyDatabase
262Trips and UsersMySQLHardDatabase
595Big CountriesMySQLEasyDatabase
596Classes More Than 5 StudentsMySQLEasyDatabase
601Human Traffic of StadiumMySQLHardDatabase
620Not Boring MoviesMySQLEasyDatabase
626Exchange SeatsMySQLMediumDatabase
627Swap SalaryMySQLEasyDatabase

Sort Algorithm

#TitleSolutionsDifficultyTag
Sort 1Bubble SortJava &PythonEasySort Algorithm
Sort 2Insert SortJava &PythonEasySort Algorithm
Sort 3Select SortJava &PythonEasySort Algorithm
Sort 4Quick SortJava &PythonEasySort Algorithm
Sort 5Merge SortJava &PythonMediumSort Algorithm
Sort 6Heap SortJava &PythonMediumSort Algorithm
Sort 7Bucket SortJava & PythonEasySort Algorithm

Search Algorithm

#TitleSolutionsDifficultyTag
Search 1Binary SearchJava &PythonEasySearch Algorithm
Search 2Interpolation SearchJava &PythonEasySearch Algorithmx
Search 3Order SearchJava &PythonEasySearch Algorithm

Interview

Top Interview Questions

Easy Collection

#TitleSolutionsDifficultyTag
1Two SumJava & PythonEasyArray
7Reverse IntegerJava & PythonEasyStrings
8String to Integer (atoi)Java & PythonMediumStrings
13Roman to IntegerJava & PythonEasyMath
14Longest Common PrefixJava & PythonEasyStrings
19Remove Nth Node From End of ListJava & PythonMediumLinked List
20Valid ParenthesesJava & PythonEasyOthers
21Merge Two Sorted ListsJava & PythonEasyLinked List
26Remove Duplicates from Sorted ArrayJava & PythonEasyArray
28Implement strStr()Java & PythonEasyStrings
36Valid SudokuJava & PythonMediumArray
38Count and SayJava & PythonEasyStrings
48Rotate ImageJava & PythonMediumArray
53Maximum SubarrayJava &PythonEasyDynamic Programming
66Plus OneJava & PythonEasyArray
70Climbing StairsJava & PythonEasyDynamic Programming
88Merge Sorted ArrayJava & PythonEasySorting and Searching
98Validate Binary Search TreeJava & PythonMediumTrees
101Symmetric TreeJava & PythonEasyTrees
102Binary Tree Level Order TraversalJava & PythonMediumTrees
104Maximum Depth of Binary TreeJava & PythonEasyTrees
108Convert Sorted Array to Binary Search TreeJava & PythonEasyTrees
118Pascal's TriangleJava & PythonEasyOthers
121Best Time to Buy and Sell StockJava & PythonEasyDynamic Programming
122Remove Duplicates from Sorted ArrayJava & PythonEasyArray
125Valid PalindromeJava & PythonEasyStrings
136Single NumberJava & PythonEasyArray
141Linked List CycleJava & PythonEasyLinked List
155Min StackJava & PythonEasyDesign
189Rotate ArrayJava & PythonEasyArray
190Reverse BitsJava & PythonEasyOthers
191Number of 1 BitsJava & PythonEasyOthers
198House RobberJava & PythonEasyDynamic Programming
204Count PrimesJava & PythonEasyMath
206Reverse Linked ListJava & PythonEasyLinked List
217Contains DuplicateJava & PythonEasyArray
234Palindrome Linked ListJava & PythonEasyLinked List
237Delete Node in a Linked ListJava & PythonEasyLinked List
242Valid AnagramJava & PythonEasyStrings
268Missing NumberJava & PythonEasyOthers
278First Bad VersionJava &PythonEasySorting and Searching
283Move ZeroesJava & PythonEasyArray
326Power of ThreeJava & PythonEasyMath
344Reverse StringJava & PythonEasyStrings
350Intersection of Two Arrays IIJava & PythonEasyArray
384Shuffle an ArrayJava & PythonMediumDesign
387First Unique Character in a StringJava & PythonEasyStrings
412Fizz BuzzJava & PythonEasyMath
461Hamming DistanceJava & PythonEasyOthers

Medium Collection

#TitleSolutionsDifficultyTag
2Add Two NumbersJava & PythonMediumLinked List
3Longest Substring Without Repeating CharactersJava & PythonMediumArray and Strings
5Longest Palindromic SubstringJava & PythonMediumArray and Strings
153SumJava & PythonMediumArray and Strings
17Letter Combinations of a Phone NumberJava & PythonMediumBacktracking
22Generate ParenthesesJava & PythonMediumBacktracking
29Divide Two IntegersJava & PythonMediumMath
33Search in Rotated Sorted ArrayJava &PythonMediumSorting and Searching
34Find First and Last Position of Element in Sorted ArrayJava & PythonMediumSorting and Searching
46PermutationsJava & PythonMediumBacktracking
49Group AnagramsJava & PythonMediumArray and Strings
50Pow(x, n)Java & PythonMediumMath
55Jump GameJava & PythonMediumDynamic Programming
56Merge IntervalsJava & PythonMediumSorting and Searching
62Unique PathsJava & PythonMediumDynamic Programming
69Sqrt(x)Java &PythonEasyMath
73Set Matrix ZeroesJava & PythonMediumArray and Strings
75Sort ColorsJava & PythonMediumSorting and Searching
78SubsetsJava & PythonMediumBacktracking
79Word SearchJava & PythonMediumBacktracking
94Binary Tree Inorder TraversalJava & PythonMediumTrees and Graphs
103Binary Tree Zigzag Level Order TraversalJava & PythonMediumTrees and Graphs
105Construct Binary Tree from Preorder and Inorder TraversalJava & PythonMediumTrees and Graphs
116Populating Next Right Pointers in Each NodeJava & PythonMediumTrees and Graphs
150Evaluate Reverse Polish NotationJava & PythonMediumOthers
160Intersection of Two Linked ListsJava & PythonEasyLinked List
162Find Peak ElementJava & PythonMediumSorting and Searching
166Fraction to Recurring DecimalJava & PythonMediumMath
169Majority ElementJava & PythonEasyOthers
171Excel Sheet Column NumberJava & PythonEasyMath
172Factorial Trailing ZeroesJava & PythonEasyMath
200Number of IslandsJava & PythonMediumTrees and Graphs
202Happy NumberJava & PythonEasyMath
215Kth Largest Element in an ArrayJava & PythonMediumSorting and Searching
230Kth Smallest Element in a BSTJava & PythonMediumTrees and Graphs
240Search a 2D Matrix IIJava & PythonMediumSorting and Searching
297Serialize and Deserialize Binary TreeJava & PythonMediumDesign
300Longest Increasing SubsequenceJava & PythonMediumDynamic Programming
322Coin ChangeJava & PythonMediumDynamic Programming
328Odd Even Linked ListJava & PythonMediumLinked List
334Increasing Triplet SubsequenceJava & PythonMediumArray and Strings
347Top K Frequent ElementsJava & PythonMediumSorting and Searching
371Sum of Two IntegersJava & PythonEasyOthers
380Insert Delete GetRandom O(1)Java & PythonMediumDesign
621Task SchedulerJava & PythonMediumOthers

Hard Collection

#TitleSolutionsDifficultyTag
4Median of Two Sorted ArraysJava & PythonHardSorting and Searching
10Regular Expression MatchingJava & PythonHardBacktracking
11Container With Most WaterJava & PythonMediumArray and Strings
23Merge k Sorted ListsJava & PythonHardLinked List
41First Missing PositiveJava & PythonHardArray and Strings
42Trapping Rain WaterJava & PythonHardOthers
44Wildcard MatchingJava & PythonHardBacktracking
54Spiral MatrixJava & PythonMediumArray and Strings
76Minimum Window SubstringJava & PythonHardArray and Strings
84Largest Rectangle in HistogramJava & PythonHardOthers
91Decode WaysJava & PythonMediumDynamic Programming
124Binary Tree Maximum Path SumJava & PythonHardTrees and Graphs
127Word LadderJava & PythonMediumTrees and Graphs
128Longest Consecutive SequenceJava & PythonHardArray and Strings
130Surrounded RegionsJava & PythonMediumTrees and Graphs
131Palindrome PartitioningJava & PythonMediumBacktracking
135Copy List with Random PointerJava & PythonMediumLinked List
139Word BreakJava & PythonMediumDynamic Programming
140Word Break IIJava & PythonHardDynamic Programming
146LRU CacheJava & PythonMediumDesign
148Sort ListJava & PythonMediumLinked List
149Max Points on a LineJava & PythonHardMath
152Maximum Product SubarrayJava & PythonMediumDynamic Programming
179Largest NumberJava & PythonMediumMath
207Course ScheduleJava & PythonMediumTrees and Graphs
208Implement Trie (Prefix Tree)Java & PythonMediumDesign
210Course Schedule IIJava & PythonMediumTrees and Graphs
212Word Search IIJava & PythonHardBacktracing
218The Skyline ProblemJava & PythonHardOthers
227Basic Calculator IIJava & PythonMediumArray and Strings
236Lowest Common Ancestor of a Binary TreeJava & PythonMediumTrees and Graphs
238Product of Array Except SelfJava & PythonMediumArray and Strings
239Sliding Window MaximumJava & PythonHardArray and Strings
279Perfect SquaresJava & PythonMediumDynamic Programming
287Find the Duplicate NumberJava & PythonMediumArray and Strings
289Game of LifeJava & PythonMediumArray and Strings
295Find Median from Data StreamJava & PythonHardDesign
301Remove Invalid ParenthesesJava & PythonHardBacktracking
309Best Time to Buy and Sell Stock with CooldownJava & PythonMediumDynamic Programming
312Burst BalloonsJava & PythonHardDynamic Programming
315Count of Smaller Numbers After SelfJava & PythonHardTrees and Graphs
324Wiggle Sort IIJava & PythonMediumSorting and Searching
329Longest Increasing Path in a MatrixJava & PythonHardTrees and Graphs
341Flatten Nested List IteratorJava & PythonMediumDesign
378Kth Smallest Element in a Sorted MatrixJava & PythonMediumSorting and Searching
406Queue Reconstruction by HeightJava & PythonMediumOthers
4544Sum IIJava & PythonMediumArray and Strings
547Friend CirclesJava & PythonMediumTrees and Graphs

About

♨️ Detailed Java & Python solution of LeetCode.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java98.3%
  • Python1.5%
  • Shell0.2%

[8]ページ先頭

©2009-2025 Movatter.jp