Directories ¶ Show internal Expand all Path Synopsis datastructures binarytree heap linkedlist problems 0001.Two-Sum 0002.Add-Two-Numbers 0003.Longest-Substring-Without-Repeating-Characters 0007.Reverse-Integer 0009.Palindrome-Number 0011.Container-With-Most-Water 0013.Roman-to-Integer 0014.Longest-Common-Prefix 0015.3Sum 0019.Remove-Nth-Node-From-End-of-List 0020.Valid-Parentheses 0021.Merge-Two-Sorted-Lists 0023.Merge-k-Sorted-Lists 0026.Remove-Duplicates-from-Sorted-Array 0027.Remove-Element 0028.Implement-strStr 0035.Search-Insert-Position 0045.Jump-Game-II 0053.Maximum-Subarray 0055.Jump-Game 0058.Length-of-Last-Word 0061.Rotate-List 0062.Unique-Paths 0063.Unique-Paths-II 0066.Plus-One 0070.Climbing-Stairs 0074.Search-a-2D-Matrix 0078.Subsets 0080.Remove-Duplicates-from-Sorted-Array-II 0082.Remove-Duplicates-from-Sorted-List-II 0088.Merge-Sorted-Array 0104.Maximum-Depth-of-Binary-Tree 0121.Best-Time-to-Buy-and-Sell-Stock 0122.Best-Time-to-Buy-and-Sell-Stock-II 0125.Valid-Palindrome 0127.Word-Ladder 0133.Clone-Graph 0135.Candy 0136.Single-Number 0138.Copy-List-with-Random-Pointer 0141.Linked-List-Cycle 0142.Linked-List-Cycle-II 0146.LRU-Cache 0148.Sort-List 0152.Maximum-Product-Subarray 0160.Intersection-of-Two-Linked-Lists 0165.Compare-Version-Numbers 0167.Two-Sum-II---Input-Array-Is-Sorted 0169.Majority-Element 0171.Excel-Sheet-Column-Number 0189.Rotate-Array 0198.House-Robber 0200.Number-of-Islands 0203.Remove-Linked-List-Elements 0205.Isomorphic-Strings 0206.Reverse-Linked-List 0213.House-Robber-II 0217.Contains-Duplicate 0227.Basic-Calculator-II 0228.Summary-Ranges 0234.Palindrome-Linked-List 0237.Delete-Node-in-a-Linked-List 0242.Valid-Anagram 0258.Add-Digits 0278.First-Bad-Version 0283.Move-Zeroes 0287.Find-the-Duplicate-Number 0328.Odd-Even-Linked-List 0338.Counting-Bits 0344.Reverse-String 0347.Top-K-Frequent-Elements 0349.Intersection-of-Two-Arrays 0350.Intersection-of-Two-Arrays-II 0382.Linked-List-Random-Node 0387.First-Unique-Character-in-a-String 0389.Find-the-Difference 0392.Is-Subsequence 0406.Queue-Reconstruction-by-Height 0409.Longest-Palindrome 0413.Arithmetic-Slices 0414.Third-Maximum-Number 0417.Pacific-Atlantic-Water-Flow 0430.Flatten-a-Multilevel-Doubly-Linked-List 0435.Non-overlapping-Intervals 0438.Find-All-Anagrams-in-a-String 0452.Minimum-Number-of-Arrows-to-Burst-Balloons 0454.4Sum-II 0455.Assign-Cookies 0485.Max-Consecutive-Ones 0488.Find-All-Numbers-Disappeared-in-an-Array 0509.Fibonacci-Number 0520.Detect-Capital 0525.Contiguous-Array 0532.K-diff-Pairs-in-an-Array 0542.01-Matrix 0560.Subarray-Sum-Equals-K 0561.Array-Partition-I 0563.Binary-Tree-Tilt 0567.Permutation-in-String 0605.Can-Place-Flowers 0665.Non-decreasing-Array 0680.Valid-Palindrome-II 0682.Baseball-Game 0695.Max-Area-of-Island 0700.Search-in-a-Binary-Search-Tree 0703.Kth-Largest-Element-in-a-Stream 0704.Binary-Search 0707.Design-Linked-List 0724.Find-Pivot-Index 0733.Flood-Fill 0740.Delete-and-Earn 0746.Min-Cost-Climbing-Stairs 0763.Partition-Labels 0799.Champagne-Tower 0848.Shifting-Letters 0881.Boats-to-Save-People 0905.Sort-Array-By-Parity 0938.Range-Sum-of-BST 0941.Valid-Mountain-Array 0977.Squares-of-a-Sorted-Array 0991.Broken-Calculator 0997.Find-the-Town-Judge 1010.Pairs-of-Songs-With-Total-Durations-Divisible-by-60 1020.Number-of-Enclaves 1022.Sum-of-Root-To-Leaf-Binary-Numbers 1029.Two-City-Scheduling 1046.Last-Stone-Weight 1051.Height-Checker 1089.Duplicate-Zeros 1091.Shortest-Path-in-Binary-Matrix 1108.Defanging-an-IP-Address 1137.N-th-Tribonacci-Number 1162.As-Far-from-Land-as-Possible 1217.Minimum-Cost-to-Move-Chips-to-The-Same-Position 1254.Number-of-Closed-Islands 1288.Remove-Covered-Intervals 1290.Convert-Binary-Number-in-a-Linked-List-to-Integer 1295.Find-Numbers-with-Even-Number-of-Digits 1299.Replace-Elements-with-Greatest-Element-on-Right-Side 1337.The-K-Weakest-Rows-in-a-Matrix 1342.Number-of-Steps-to-Reduce-a-Number-to-Zero 1346.Check-If-N-and-Its-Double-Exist 1365.How-Many-Numbers-Are-Smaller-Than-the-Current-Number 1446.Consecutive-Characters 1470.Shuffle-the-Array 1476.Subrectangle-Queries 1480.Running-Sum-of-1d-Array 1512.Number-of-Good-Pairs 1603.Design-Parking-System 1663.Smallest-String-With-A-Given-Numeric-Value 1672.Richest-Customer-Wealth 1721.Swapping-Nodes-in-a-Linked-List 1784.Check-if-Binary-String-Has-at-Most-One-Segment-of-Ones 1905.Count-Sub-Islands 1920.Build-Array-from-Permutation 1929.Concatenation-of-Array 2011.Final-Value-of-Variable-After-Performing-Operations 2114.Maximum-Number-of-Words-Found-in-Sentences 2148.Count-Elements-With-Strictly-Smaller-and-Greater-Elements 2149.Rearrange-Array-Elements-by-Sign 2150.Find-All-Lonely-Numbers-in-the-Array 2151.Maximum-Good-People-Based-on-Statements 2154.Keep-Multiplying-Found-Values-by-Two 2155.All-Divisions-With-the-Highest-Score-of-a-Binary-Array 2156.Find-Substring-With-Given-Hash-Value 2157.Groups-of-Strings 2160.Minimum-Sum-of-Four-Digit-Number-After-Splitting-Digits 2161.Partition-Array-According-to-Given-Pivot 2162.Minimum-Cost-to-Set-Cooking-Time 2163.Minimum-Difference-in-Sums-After-Removal-of-Elements 2164.Sort-Even-and-Odd-Indices-Independently 2165.Smallest-Value-of-the-Rearranged-Number 2166.Design-Bitset 2167.Minimum-Time-to-Remove-All-Cars-Containing-Illegal-Goods 2176.Count-Equal-and-Divisible-Pairs-in-an-Array 2177.Find-Three-Consecutive-Integers-That-Sum-to-a-Given-Number 2178.Maximum-Split-of-Positive-Even-Integers 2180.Count-Integers-With-Even-Digit-Sum 2181.Merge-Nodes-in-Between-Zeros 2185.Counting-Words-With-a-Given-Prefix 2186.Minimum-Number-of-Steps-to-Make-Two-Strings-Anagram-II 2215.Find-the-Difference-of-Two-Arrays 2216.Minimum-Deletions-to-Make-Array-Beautiful 2217.Find-Palindrome-With-Fixed-Length 2220.Minimum-Bit-Flips-to-Convert-Number 2221.Find-Triangular-Sum-of-an-Array 2222.Number-of-Ways-to-Select-Buildings 2224.Minimum-Number-of-Operations-to-Convert-Time 2225.Find-Players-With-Zero-or-One-Losses 2226.Maximum-Candies-Allocated-to-K-Children 2233.Maximum-Product-After-K-Increments 2381.Shifting-Letters-II 2395.Find-Subarrays-With-Equal-Sum 2396.Strictly-Palindromic-Number 2399.Check-Distances-Between-Same-Letters 2400.Number-of-Ways-to-Reach-a-Position-After-Exactly-k-Steps 2413.Smallest-Even-Multiple 2414.Length-of-the-Longest-Alphabetical-Continuous-Substring 2415.Reverse-Odd-Levels-of-Binary-Tree 2416.Sum-of-Prefix-Scores-of-Strings 2418.Sort-the-People 2419.Longest-Subarray-With-Maximum-Bitwise-AND 2420.Find-All-Good-Indices script Click to show internal directories. Click to hide internal directories.