Skip to content

Latest commit

History

419 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

LeetCode

#Titlecc++pythongorustDifficulty
0001Two Sumcc++pythongorustEasy
0002Add Two Numberscc++pythongorustMedium
0003Longest Substring Without Repeating Characterscc++pythonMedium
0004Median of Two Sorted Arrayscc++pythonHard
0005Longest Palindromic Substringcc++pythonMedium
0006ZigZag Conversioncc++pythonMedium
0007Reverse Integercc++pythonEasy
0008String to Integer (atoi)cc++pythonMedium
0009Palindrome Numbercc++pythonEasy
0010Regular Expression Matchingcc++pythonHard
0011Container With Most Watercc++pythonMedium
0012Integer to Romancc++pythonMedium
0013Roman to Integercc++pythonEasy
0014Longest Common Prefixcc++pythonEasy
00153Sumcc++pythonMedium
00163Sum Closestcc++pythonMedium
0017Letter Combinations of a Phone Numbercc++pythonMedium
00184Sumcc++pythonMedium
0019Remove Nth Node From End of Listcc++pythonMedium
0020Valid Parenthesescc++pythonEasy
0021Merge Two Sorted Listscc++pythonEasy
0022Generate Parenthesescc++pythonMedium
0023Merge k Sorted Listscc++pythonHard
0024Swap Nodes in Pairscc++pythonMedium
0026Remove Duplicates from Sorted Arraycc++pythonEasy
0027Remove Elementcc++pythonEasy
0028Implement strStr()cc++pythonEasy
0029Divide Two Integerscc++pythonMedium
0030Substring with Concatenation of All Wordscc++pythonHard
0031Next Permutationcc++pythonMedium
0032Longest Valid Parenthesescc++pythonHard
0033Search in Rotated Sorted Arraycc++pythonMedium
0034Find First and Last Position of Element in Sorted Arraycc++pythonMedium
0035Search Insert Positioncc++pythonEasy
0036Valid Sudokucc++pythonMedium
0037Sudoku Solvercc++pythonHard
0038Count and Saycc++pythonEasy
0039Combination Sumcc++pythonMedium
0040Combination Sum IIcc++pythonMedium
0041First Missing Positivecc++pythonHard
0042Trapping Rain Watercc++pythonHard
0043Multiply Stringscc++pythonMedium
0044Wildcard Matchingcc++pythonHard
0045Jump Game IIcc++pythonHard
0046Permutationscc++pythonMedium
0047Permutations IIcc++pythonMedium
0048Rotate Imagecc++pythonMedium
0049Group Anagramscc++pythonMedium
0050Pow(x, n)cc++pythonMedium
0051N-Queenscc++pythonHard
0052N-Queens IIcc++pythonHard
0053Maximum Subarraycc++pythonEasy
0054Spiral Matrixcc++pythonMedium
0055Jump Gamecc++pythonMedium
0056Merge Intervalscc++pythonMedium
0057Insert Intervalcc++pythonHard
0058Length of Last Wordcc++pythonEasy
0059Spiral Matrix IIcc++pythonHard
0060Permutation Sequencecc++pythonMedium
0061Rotate Listcc++pythonMedium
0062Unique Pathscc++pythonMedium
0063Unique Paths IIcc++pythonMedium
0064Minimum Path Sumcc++pythonMedium
0065Valid Numbercc++pythonHard
0066Plus Onecc++pythonEasy
0068Text Justificationcc++pythonHard
0069Sqrt(x)cc++pythonEasy
0070Climbing Stairscc++pythonEasy
0071Simplify Pathcc++pythonMedium
0072Edit Distancecc++pythonHard
0073Set Matrix Zeroescc++pythonMedium
0074Search a 2D Matrixcc++pythonMedium
0075Sort Colorscc++pythonMedium
0076Minimum Window Substringcc++pythonEasy
0077Combinationscc++pythonMedium
0078Subsetscc++pythonMedium
0079Word Searchcc++pythonMedium
0080Remove Duplicates from Sorted Array IIcc++pythonMedium
0081Search in Rotated Sorted Array IIcc++pythonMedium
0082Remove Duplicates from Sorted List IIcc++pythonMedium
0083Remove Duplicates from Sorted Listcc++pythonEasy
0084Largest Rectangle in Histogramcc++pythonHard
0085Maximal Rectanglecc++pythonHard
0086Partition Listcc++pythonMedium
0087Scramble Stringcc++pythonHard
0088Merge Sorted Arraycc++pythonEasy
0089Gray Codecc++pythonMedium
0090Subsets IIcc++pythonMedium
0091Decode Wayscc++pythonMedium
0092Reverse Linked List IIcc++pythonMedium
0093Restore IP Addressescc++pythonMedium
0094Binary Tree Inorder Traversalcc++pythonMedium
0095Unique Binary Search Trees IIcc++pythonMedium
0096Unique Binary Search Treescc++pythonMedium
0097Interleaving Stringcc++pythonMedium
0098Validate Binary Search Treecc++pythonMedium
0099Recover Binary Search Treecc++pythonHard
0100Same Treecc++pythonEasy
0101Symmetric Treecc++pythonEasy
0102Binary Tree Level Order Traversalcc++pythonMedium
0103Binary Tree Zigzag Level Order Traversalcc++pythonMedium
0104Maximum Depth of Binary Treecc++pythonEasy
0105Construct Binary Tree from Preorder and Inorder Traversalcc++pythonMedium
0106Construct Binary Tree from Inorder and Postorder Traversalcc++pythonMedium
0107Binary Tree Level Order Traversal IIcc++pythonEasy
0108Convert Sorted Array to Binary Search Treecc++pythonEasy
0109Convert Sorted List to Binary Search Treecc++pythonMedium
0110Balanced Binary Treecc++pythonEasy
0111Minimum Depth of Binary Treecc++pythonEasy
0112Path Sumcc++pythonEasy
0113Path Sum IIcc++pythonMedium
0114Flatten Binary Tree to Linked Listcc++pythonMedium
0115Distinct Subsequencescc++pythonHard
0116Populating Next Right Pointers in Each Nodecc++pythonMedium
0117Populating Next Right Pointers in Each Node IIcc++pythonMedium
0118Pascal's Trianglecc++pythonEasy
0119Pascal's Triangle IIcc++pythonEasy
0120Trianglecc++pythonMedium
0121Best Time to Buy and Sell Stockcc++pythonEasy
0122Best Time to Buy and Sell Stock IIcc++pythonEasy
0123Best Time to Buy and Sell Stock IIIcc++pythonHard
0124Binary Tree Maximum Path Sumcc++pythonHard
0125Valid Palindromecc++pythonEasy
0126Word Ladder IIcc++pythonHard
0127Word Laddercc++pythonMedium
0128Longest Consecutive Sequencecc++pythonHard
0129Sum Root to Leaf Numberscc++pythonMedium
0130Surrounded Regionscc++pythonMedium
0131Palindrome Partitioningcc++pythonMedium
0132Palindrome Partitioning IIcc++pythonHard
0133Clone Graphcc++pythonMedium
0134Gas Stationcc++pythonMedium
0135Candycc++pythonHard
0136Single Numbercc++pythonEasy
0137Single Number IIcc++pythonMedium
0138Copy List with Random Pointercc++pythonMedium
0139Word Breakcc++pythonMedium
0140Word Break IIcc++pythonHard
0141Linked List Cyclecc++pythonEasy
0142Linked List Cycle IIcc++pythonMedium
0143Reorder-Listcc++pythonMedium
0144Binary Tree Preorder Traversalcc++pythonMedium
0145Binary Tree Postorder Traversalcc++pythonHard
0146LRU Cachecc++pythonHard
0147Insertion Sort Listcc++pythonMedium
0148Sort Listcc++pythonMedium
0149Max Points on a Linecc++pythonHard
0150Evaluate Reverse Polish Notationcc++pythonMedium
0151Reverse Words in a Stringcc++pythonMedium
0152Maximum Product Subarraycc++pythonMedium
0153Find Minimum in Rotated Sorted Arraycc++pythonMedium
0154Find Minimum in Rotated Sorted Array IIcc++pythonHard
0155Min Stackcc++pythonEasy
0160Intersection of Two Linked Listscc++pythonEasy
0162Find Peak Elementcc++pythonMedium
0165Compare Version Numberscc++pythonMedium
0166Fraction to Recurring Decimalcc++pythonMedium
0167Two Sum II - Input array is sortedcc++pythonEasy
0168Excel Sheet Column Titlecc++pythonEasy
0169Majority Elementcc++pythonEasy
0171Excel Sheet Column Numbercc++pythonEasy
0172Factorial Trailing Zeroescc++pythonEasy
0173Binary Search Tree Iteratorcc++pythonMedium
0174Dungeon Gamecc++pythonHard
0179Largest Numbercc++pythonMedium
0187Repeated-DNA-Sequencescc++pythonMedium
0188Best Time to Buy and Sell Stock IVcc++pythonHard
0189Rotate Arraycc++pythonEasy
0190Reverse Bitscc++pythonEasy
0191Number of 1 Bitscc++pythonEasy
0198House Robbercc++pythonEasy
0199Binary Tree Right Side Viewcc++pythonMedium
0200Number of Islandscc++pythonMedium
0201Bitwise AND of Numbers Rangecc++pythonMedium
0202Happy Numbercc++pythonEasy
0203Remove Linked List Elementscc++pythonEasy
0204Count Primescc++pythonEasy
0205Isomorphic Stringscc++pythonEasy
0206Reverse Linked Listcc++pythonEasy
0208Implement Trie (Prefix Tree)cc++pythonEasy
0209Minimum Size Subarray Sumcc++pythonMedium
0211Add and Search Word - Data structure designcc++pythonMedium
0213House Robber IIcc++pythonMedium
0215Kth Largest Element in an Arraycc++pythonMedium
0216Combination Sum IIIcc++pythonMedium
0217Contains Duplicatecc++pythonEasy
0219Contains Duplicate IIcc++pythonEasy
0221Maximal Squarecc++pythonMedium
0222Count Complete Tree Nodescc++pythonMedium
0226Invert Binary Treecc++pythonEasy
0228Summary Rangescc++pythonMedium
0229Majority Element IIcc++pythonMedium
0230Kth Smallest Element in a BSTcc++pythonMedium
0234Palindrome Linked Listcc++pythonMedium
0235Lowest Common Ancestor of a Binary Search Treecc++pythonEasy
0236Lowest Common Ancestor of a Binary Treecc++pythonMedium
0237Delete Node in a Linked Listcc++pythonEasy
0238Product of Array Except Selfcc++pythonMedium
0239Sliding Window Maximumcc++pythonMedium
0240Search a 2D Matrix IIcc++pythonMedium
0241Different Ways to Add Parenthesescc++pythonMedium
0242Valid Anagramcc++pythonEasy
0242Binary Tree Pathscc++pythonEasy
0260Single Number IIIcc++pythonMedium
0263Ugly Numbercc++pythonEasy
0264Ugly Number IIcc++pythonMedium
0268Missing Numbercc++pythonEasy
0279Perfect Squarescc++pythonMedium
0283Move Zeroescc++pythonEasy
0287Find the Duplicate Numbercc++pythonMedium
0289Game of Lifecc++pythonMedium
0290Word Patterncc++pythonEasy
0297Serialize and Deserialize Binary Treecc++pythonHard
0300Longest Increasing Subsequencecc++pythonMedium
0303Range Sum Query - Immutablecc++pythonEasy
0307Range Sum Query - Mutablecc++pythonMedium
0309Best Time to Buy and Sell Stock with Cooldowncc++pythonMedium
0322Coin-Changecc++pythonMedium
0325Maximum Size Subarray Sum Equals kcc++pythonMedium
0328Odd Even Linked Listcc++pythonMedium
0337House Robber IIIcc++pythonMedium
0341Flatten Nested List Iteratorcc++pythonMedium
0343Integer Breakcc++pythonMedium
0344Reverse Stringcc++pythonEasy
0345Reverse Vowels of a Stringcc++pythonEasy
0347Top K Frequent Elementscc++pythonMedium
0349Intersection of Two Arrayscc++pythonEasy
0350Intersection of Two Arrays IIcc++pythonEasy
0354Russian Doll Envelopescc++pythonHard
0377Combination Sum IVcc++pythonMedium
0389Find the Differencecc++pythonEasy
0392Is Subsequencecc++pythonMedium
0401Binary Watchcc++pythonEasy
0404Sum of Left Leavescc++pythonEasy
0416Partition Equal Subset Sumcc++pythonMedium
0435Non-overlapping Intervalscc++pythonMedium
0437Path Sum IIIcc++pythonEasy
0438Find All Anagrams in a Stringcc++pythonEasy
0445Add Two Numbers IIcc++pythonMedium
0447Number of Boomerangscc++pythonEasy
0450Delete Node in a BSTcc++pythonMedium
0451Sort Characters By Frequencycc++pythonEasy
04544Sum IIcc++pythonMedium
0455Assign Cookiescc++pythonEasy
0474Ones and Zeroescc++pythonMedium
0486Predict the Winnercc++pythonMedium
0494Target Sumcc++pythonMedium
0496Next Greater Element Icc++pythonEasy
0503Next Greater Element IIcc++pythonMedium
0525Contiguous Arraycc++pythonMedium
0530Minimum Absolute Difference in BSTcc++pythonEasy
0543Diameter of Binary Treecc++pythonEasy
0547Friend Circlescc++pythonMedium
0560Subarray Sum Equals Kcc++pythonMedium
0637Average of Levels in Binary Treecc++pythonEasy
0652Find Duplicate Subtreescc++pythonMedium
0654Maximum Binary Treecc++pythonMedium
0684Redundant Connectioncc++pythonMedium
0687Longest Univalue Pathcc++pythonEasy
0739Daily Temperaturescc++pythonMedium
0742Closest Leaf in a Binary Treecc++pythonMedium
0788Rotated Digitscc++pythonEasy
0793Preimage Size of Factorial Zeroes Functioncc++pythonHard
0834Sum of Distances in Treecc++pythonHard
0844Backspace String Comparecc++pythonEasy
0845Longest Mountain in Arraycc++pythonMedium
0846Hand of Straightscc++pythonMedium
0847Shortest Path Visiting All Nodescc++pythonHard
0852Peak Index in a Mountain Arraycc++pythonEasy
0872Leaf-Similar Treescc++pythonEasy
0873Length of Longest Fibonacci Subsequencecc++pythonMedium
0874Walking Robot Simulationcc++pythonEasy
0901Online Stock Spancc++pythonMedium
0902Numbers At Most N Given Digit Setcc++pythonHard
0907Sum of Subarray Minimumscc++pythonMedium
0917Reverse Only Letterscc++pythonEasy
0918Maximum Sum Circular Subarraycc++pythonMedium
0919Complete Binary Tree Insertercc++pythonMedium
0920Number of Music Playlistscc++pythonMedium
0921Minimum Add to Make Parentheses Validcc++pythonMedium
0922Sort Array By Parity IIcc++pythonEasy
09233Sum With Multiplicitycc++pythonMedium
0925Long Pressed Namecc++pythonEasy
0926Flip String to Monotone Increasingcc++pythonMedium
0927Three Equal Partscc++pythonMedium
0929Unique Email Addressescc++pythonEasy
0930Binary Subarrays With Sumcc++pythonMedium
0931Minimum Falling Path Sumcc++pythonMedium
0932Beautiful Arraycc++pythonMedium
0933Number of Recent Callscc++pythonEasy
0934Shortest Bridgecc++pythonMedium
0935Knight Dialercc++pythonMedium
0936Stamping The Sequencecc++pythonHard
0937Reorder Log Filescc++pythonEasy
0938Range Sum of BSTcc++pythonMedium
0939Minimum Area Rectanglecc++pythonMedium
0940Distinct Subsequences IIcc++pythonHard
0941Valid Mountain Arraycc++pythonEasy
0942DI String Matchcc++pythonEasy
0943Find the Shortest Superstringcc++pythonHard
0944Delete Columns to Make Sortedcc++pythonEasy
0945Minimum Increment to Make Array Uniquecc++pythonMedium
0946Validate Stack Sequencescc++pythonMedium
0947Most Stones Removed with Same Row or Columncc++pythonMedium
0948Bag of Tokenscc++pythonMedium
0949Largest Time for Given Digitscc++pythonEasy
0950Reveal Cards In Increasing Ordercc++pythonMedium
0951Flip Equivalent Binary Treescc++pythonMedium
0953Verifying an Alien Dictionarycc++pythonEasy
0954Array of Doubled Pairscc++pythonMedium
0955Delete Columns to Make Sorted IIcc++pythonMedium
0956Tallest Billboardcc++pythonHard
0957Prison Cells After N Dayscc++pythonMedium
0958Check Completeness of a Binary Treecc++pythonMedium
0959Regions Cut By Slashescc++pythonMedium
0960Delete Columns to Make Sorted IIIcc++pythonHard
0961N-Repeated Element in Size 2N Arraycc++pythonEasy
0962Maximum Width Rampcc++pythonMedium
0963Minimum Area Rectangle IIcc++pythonMedium
0965Univalued Binary Treecc++pythonEasy
0966Vowel Spellcheckercc++pythonMedium
0967Numbers With Same Consecutive Differencescc++pythonMedium
0969Pancake Sortingcc++pythonMedium
0970Powerful Integerscc++pythonEasy
0971Flip Binary Tree To Match Preorder Traversalcc++pythonMedium
0972Equal Rational Numberscc++pythonHard
0973K Closest Points to Origincc++pythonEasy
0974Subarray Sums Divisible by Kcc++pythonMedium
0975Odd Even Jumpcc++pythonHard
0976Largest Perimeter Trianglecc++pythonEasy
0977Squares of a Sorted Arraycc++pythonEasy
0978Longest Turbulent Subarraycc++pythonMedium
0979Distribute Coins in Binary Treecc++pythonMedium
0980Unique Paths IIIcc++pythonMedium
0981Time Based Key-Value Storecc++pythonMedium
0982Triples with Bitwise AND Equal To Zerocc++pythonHard
0983Minimum Cost For Ticketscc++pythonMedium
0984String Without AAA or BBBcc++pythonEasy
0985Sum of Even Numbers After Queriescc++pythonEasy
0986Interval List Intersectionscc++pythonMedium
0987Vertical Order Traversal of a Binary Treecc++pythonMedium
0988Smallest String Starting From Leafcc++pythonMedium
0989Add to Array-Form of Integercc++pythonEasy
0990Satisfiability of Equality Equationscc++pythonMedium
0991Broken Calculatorcc++pythonMedium
0992Subarrays with K Different Integerscc++pythonHard
0993Cousins in Binary Treecc++pythonEasy
0994Rotting Orangescc++pythonEasy
0995Minimum Number of K Consecutive Bit Flipscc++pythonHard
0996Number of Squareful Arrayscc++pythonHard
0997Find the Town Judgecc++pythonEasy
0998Maximum Binary Tree IIcc++pythonMedium
0999Available Captures for Rookcc++pythonEasy
1001Grid Illuminationcc++pythonHard
1002Find Common Characterscc++pythonEasy
1003Check If Word Is Valid After Substitutionscc++pythonMedium
1004Max Consecutive Ones IIIcc++pythonMedium
1005Maximize Sum Of Array After K Negationscc++pythonEasy
1006Clumsy Factorialcc++pythonMedium
1007Minimum Domino Rotations For Equal Rowcc++pythonMedium
1008Construct Binary Search Tree from Preorder Traversalcc++pythonMedium
1009Complement of Base 10 Integercc++pythonEasy
1010Pairs of Songs With Total Durations Divisible by 60cc++pythonEasy
1011Capacity To Ship Packages Within D Dayscc++pythonMedium
1012Numbers With Repeated Digitscc++pythonHard
1013Partition Array Into Three Parts With Equal Sumcc++pythonEasy
1014Best Sightseeing Paircc++pythonMedium
1015Smallest Integer Divisible by Kcc++pythonMedium
1017Convert to Base -2cc++pythonMedium
1018Binary Prefix Divisible By 5cc++pythonEasy
1019Next Greater Node In Linked Listcc++pythonMedium
1020Number of Enclavescc++pythonMedium

About

Play Leetcode with different Programming language

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages