Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

155 Commits
Sorry, we had to truncate this directory to 1,000 files. 22 entries were omitted from the list.

Repository files navigation

LeetCode

LeetCode solutions gives some thoughts on selected problems.

Solved 783/1883 problems.

Database

See database.md

Algorithms

#TitleSolution
2081Sum of k-Mirror Numberssum-of-k-mirror-numbers.cc
2078Two Furthest Houses With Different Colorstwo-furthest-houses-with-different-colors.cc
2065Maximum Path Quality of a Graphmaximum-path-quality-of-a-graph.cc
2064Minimized Maximum of Products Distributed to Any Storeminimized-maximum-of-products-distributed-to-any-store.cc
2063Vowels of All Substringsvowels-of-all-substrings.cc
2062Count Vowel Substrings of a Stringcount-vowel-substrings-of-a-string.cc
2060Check if an Original String Exists Given Two Encoded Stringscheck-if-an-original-string-exists-given-two-encoded-strings.cc
2059Minimum Operations to Convert Numberminimum-operations-to-convert-number.cc
2057Smallest Index With Equal Valuesmallest-index-with-equal-value.nim
2050Parallel Courses IIIparallel-courses-iii.nim
2049Count Nodes With the Highest Scorecount-nodes-with-the-highest-score.nim
2048Next Greater Numerically Balanced Numbernext-greater-numerically-balanced-number.cc
2047Number of Valid Words in a Sentencenumber-of-valid-words-in-a-sentence.cc
2045Second Minimum Time to Reach Destinationsecond-minimum-time-to-reach-destination.nim
2044Count Number of Maximum Bitwise-OR Subsetscount-number-of-maximum-bitwise-or-subsets.nim
2043Simple Bank Systemsimple-bank-system.cc
2042Check if Numbers Are Ascending in a Sentencecheck-if-numbers-are-ascending-in-a-sentence.cc
2055Plates Between Candlesplates-between-candles.nim
2054Two Best Non-Overlapping Eventstwo-best-non-overlapping-events.nim
2035Partition Array Into Two Arrays to Minimize Sum Differencepartition-array-into-two-arrays-to-minimize-sum-difference.nim
2033Minimum Operations to Make a Uni-Value Gridminimum-operations-to-make-a-uni-value-grid.nim
2032Two Out of Threetwo-out-of-three.cc
2030Smallest K-Length Subsequence With Occurrences of a Lettersmallest-k-length-subsequence-with-occurrences-of-a-letter.nim
2029Stone Game IXstone-game-ix.nim
2028Find Missing Observationsfind-missing-observations.cc
2027Minimum Moves to Convert Stringminimum-moves-to-convert-string.cc
2040Kth Smallest Product of Two Sorted Arrayskth-smallest-product-of-two-sorted-arrays.nim
2019The Score of Students Solving Math Expressionthe-score-of-students-solving-math-expression.nim
2018Check if Word Can Be Placed In Crosswordcheck-if-word-can-be-placed-in-crossword.cc
2017Grid Gamegrid-game.cc
2016Maximum Difference Between Increasing Elementsmaximum-difference-between-increasing-elements.cc
2014Longest Subsequence Repeated k Timeslongest-subsequence-repeated-k-times.cc
2013Detect Squaresdetect-squares.nim
2012Sum of Beauty in the Arraysum-of-beauty-in-the-array.cc
2011Final Value of Variable After Performing Operationsfinal-value-of-variable-after-performing-operations.cc
2025Maximum Number of Ways to Partition an Arraymaximum-number-of-ways-to-partition-an-array.nim
2024Maximize the Confusion of an Exammaximize-the-confusion-of-an-exam.nim
2003Smallest Missing Genetic Value in Each Subtreesmallest-missing-genetic-value-in-each-subtree.cc
2002Maximum Product of the Length of Two Palindromic Subsequencesmaximum-product-of-the-length-of-two-palindromic-subsequences.rs
2001Number of Pairs of Interchangeable Rectanglesnumber-of-pairs-of-interchangeable-rectangles.cc
1998GCD Sort of an Arraygcd-sort-of-an-array.rs
1997First Day Where You Have Been in All the Roomsfirst-day-where-you-have-been-in-all-the-rooms.rs
1996The Number of Weak Characters in the Gamethe-number-of-weak-characters-in-the-game.rs
1995Count Special Quadrupletscount-special-quadruplets.cc
2009Minimum Number of Operations to Make Array Continuousminimum-number-of-operations-to-make-array-continuous.rs
2008Maximum Earnings From Taximaximum-earnings-from-taxi.nim
1986Minimum Number of Work Sessions to Finish the Tasksminimum-number-of-work-sessions-to-finish-the-tasks.rs
1982Find Array Given Subset Sumsfind-array-given-subset-sums.rs
1994The Number of Good Subsetsthe-number-of-good-subsets.rs
1970Last Day Where You Can Still Crosslast-day-where-you-can-still-cross.rs
1969Minimum Non-Zero Product of the Array Elementsminimum-non-zero-product-of-the-array-elements.rs
1963Minimum Number of Swaps to Make the String Balancedminimum-number-of-swaps-to-make-the-string-balanced.rs
1977Number of Ways to Separate Numbersnumber-of-ways-to-separate-numbers.rs
1976Number of Ways to Arrive at Destinationnumber-of-ways-to-arrive-at-destination.rs
1975Maximum Matrix Summaximum-matrix-sum.rs
1955Count Number of Special Subsequencescount-number-of-special-subsequences.rs
1953Maximum Number of Weeks for Which You Can Workmaximum-number-of-weeks-for-which-you-can-work.rs
1959Minimum Total Space Wasted With K Resizing Operationsminimum-total-space-wasted-with-k-resizing-operations.rs
1948Delete Duplicate Folders in Systemdelete-duplicate-folders-in-system.cc
1947Maximum Compatibility Score Summaximum-compatibility-score-sum.rs
1938Maximum Genetic Difference Querymaximum-genetic-difference-query.rs
1937Maximum Number of Points with Costmaximum-number-of-points-with-cost.rs
1931Painting a Grid With Three Different Colorspainting-a-grid-with-three-different-colors.rs
1932Merge BSTs to Create Single BSTmerge-bsts-to-create-single-bst.cc
1943Describe the Paintingdescribe-the-painting.rs
1942The Number of the Smallest Unoccupied Chairthe-number-of-the-smallest-unoccupied-chair.rs
1923Longest Common Subpathlongest-common-subpath.rs
1915Number of Wonderful Substringsnumber-of-wonderful-substrings.rs
1914Cyclically Rotating a Gridcyclically-rotating-a-grid.rs
1928Minimum Cost to Reach Destination in Timeminimum-cost-to-reach-destination-in-time.rs
1906Minimum Absolute Difference Queriesminimum-absolute-difference-queries.rs
1900The Earliest and Latest Rounds Where Players Competethe-earliest-and-latest-rounds-where-players-compete.rs
1898Maximum Number of Removable Charactersmaximum-number-of-removable-characters.rs
1911Maximum Alternating Subsequence Summaximum-alternating-subsequence-sum.rs
1909Remove One Element to Make the Array Strictly Increasingremove-one-element-to-make-the-array-strictly-increasing.rs
1889Minimum Space Wasted From Packagingminimum-space-wasted-from-packaging.rs
1888Minimum Number of Flips to Make the Binary String Alternatingminimum-number-of-flips-to-make-the-binary-string-alternating.rs
1883Minimum Skips to Arrive at Meeting On Timeminimum-skips-to-arrive-at-meeting-on-time.rs
1882Process Tasks Using Serversprocess-tasks-using-servers.rs
1896Minimum Cost to Change the Final Value of Expressionminimum-cost-to-change-the-final-value-of-expression.rs
1872Stone Game VIIIstone-game-viii.rs
1871Jump Game VIIjump-game-vii.rs
1870Minimum Speed to Arrive on Timeminimum-speed-to-arrive-on-time.rs
1866Number of Ways to Rearrange Sticks With K Sticks Visiblenumber-of-ways-to-rearrange-sticks-with-k-sticks-visible.rs
1878Get Biggest Three Rhombus Sums in a Gridget-biggest-three-rhombus-sums-in-a-grid.rs
1857Largest Color Value in a Directed Graphlargest-color-value-in-a-directed-graph.rs
1856Maximum Subarray Min-Productmaximum-subarray-min-product.rs
1850Minimum Adjacent Swaps to Reach the Kth Smallest Numberminimum-adjacent-swaps-to-reach-the-kth-smallest-number.rs
1851Minimum Interval to Include Each Queryminimum-interval-to-include-each-query.rs
1849Splitting a String Into Descending Consecutive Valuessplitting-a-string-into-descending-consecutive-values.rs
1848Minimum Distance to the Target Elementminimum-distance-to-the-target-element.rs
1861Rotating the Boxrotating-the-box.rs
1840Maximum Building Heightmaximum-building-height.rs
1839Longest Substring Of All Vowels in Orderlongest-substring-of-all-vowels-in-order.rs
1838Frequency of the Most Frequent Elementfrequency-of-the-most-frequent-element.rs
1837Sum of Digits in Base Ksum-of-digits-in-base-k.cc
1835Find XOR Sum of All Pairs Bitwise ANDfind-xor-sum-of-all-pairs-bitwise-and.rs
1834Single-Threaded CPUsingle-threaded-cpu.rs
1833Maximum Ice Cream Barsmaximum-ice-cream-bars.cc
1832Check if the Sentence Is Pangramcheck-if-the-sentence-is-pangram.cc
1847Closest Roomclosest-room.rs
1846Maximum Element After Decreasing and Rearrangingmaximum-element-after-decreasing-and-rearranging.rs
1825Finding MK Averagefinding-mk-average.cc
1824Minimum Sideway Jumpsminimum-sideway-jumps.cc
1819Number of Different Subsequences GCDsnumber-of-different-subsequences-gcds.cc
1818Minimum Absolute Sum Differenceminimum-absolute-sum-difference.cc
1817Finding the Users Active Minutesfinding-the-users-active-minutes.cc
1816Truncate Sentencetruncate-sentence.cc
1830Minimum Number of Operations to Make String Sortedminimum-number-of-operations-to-make-string-sorted.rs
1802Maximum Value at a Given Index in a Bounded Arraymaximum-value-at-a-given-index-in-a-bounded-array.nim
1801Number of Orders in the Backlognumber-of-orders-in-the-backlog.rs
1771Maximize Palindrome Length From Subsequencesmaximize-palindrome-length-from-subsequences.cc
1770Maximum Score from Performing Multiplication Operationsmaximum-score-from-performing-multiplication-operations.cc
1769Minimum Number of Operations to Move All Balls to Each Boxminimum-number-of-operations-to-move-all-balls-to-each-box.cc
1768Merge Strings Alternatelymerge-strings-alternately.cc
1755Closest Subsequence Sumclosest-subsequence-sum.nim
1765Map of Highest Peakmap-of-highest-peak.cc
1766Tree of Coprimestree-of-coprimes.cc
1764Form Array by Concatenating Subarrays of Another Arrayform-array-by-concatenating-subarrays-of-another-array.cc
1737Change Minimum Characters to Satisfy One of Three Conditionschange-minimum-characters-to-satisfy-one-of-three-conditions.rs
1751Maximum Number of Events That Can Be Attended IImaximum-number-of-events-that-can-be-attended-ii.nim
1698Number of Distinct Substrings in a Stringnumber-of-distinct-substrings-in-a-string.rs
1713Minimum Operations to Make a Subsequenceminimum-operations-to-make-a-subsequence.rs
1707Maximum XOR With an Element From Arraymaximum-xor-with-an-element-from-array.rs
1697Checking Existence of Edge Length Limited Pathschecking-existence-of-edge-length-limited-paths.rs
1694Reformat Phone Numberreformat-phone-number.cc
1703Minimum Adjacent Swaps for K Consecutive Onesminimum-adjacent-swaps-for-k-consecutive-ones.nim
1674Minimum Moves to Make Array Complementaryminimum-moves-to-make-array-complementary.rs
1673Find the Most Competitive Subsequencefind-the-most-competitive-subsequence.nim
1655Distribute Repeating Integersdistribute-repeating-integers.rs
1601Maximum Number of Achievable Transfer Requestsmaximum-number-of-achievable-transfer-requests.cc
1591Strange Printer IIstrange-printer-ii.rs
1589Maximum Sum Obtained of Any Permutationmaximum-sum-obtained-of-any-permutation.rs
1542Find Longest Awesome Substringfind-longest-awesome-substring.rs
1541Minimum Insertions to Balance a Parentheses Stringminimum-insertions-to-balance-a-parentheses-string.rs
1499Max Value of Equationmax-value-of-equation.cc
1494Parallel Courses IIparallel-courses-ii.rs
1452People Whose List of Favorite Companies Is Not a Subset of Another Listpeople-whose-list-of-favorite-companies-is-not-a-subset-of-another-list.rs
1462Course Schedule IVcourse-schedule-iv.rs
1439Find the Kth Smallest Sum of a Matrix With Sorted Rowsfind-the-kth-smallest-sum-of-a-matrix-with-sorted-rows.rs
1383Maximum Performance of a Teammaximum-performance-of-a-team.rs
1353Maximum Number of Events That Can Be Attendedmaximum-number-of-events-that-can-be-attended.rs
1371Find the Longest Substring Containing Vowels in Even Countsfind-the-longest-substring-containing-vowels-in-even-counts.rs
1284Minimum Number of Flips to Convert Binary Matrix to Zero Matrixminimum-number-of-flips-to-convert-binary-matrix-to-zero-matrix.rs
1263Minimum Moves to Move a Box to Their Target Locationminimum-moves-to-move-a-box-to-their-target-location.cc
1262Greatest Sum Divisible by Threegreatest-sum-divisible-by-three.cc
1261Find Elements in a Contaminated Binary Treefind-elements-in-a-contaminated-binary-tree.cc
1260Shift 2D Gridshift-2d-grid.cc
1255Maximum Score Words Formed by Lettersmaximum-score-words-formed-by-letters.cc
1254Number of Closed Islandsnumber-of-closed-islands.cc
1253Reconstruct a 2-Row Binary Matrixreconstruct-a-2-row-binary-matrix.cc
1252Cells with Odd Values in a Matrixcells-with-odd-values-in-a-matrix.cc
1235Maximum Profit in Job Schedulingmaximum-profit-in-job-scheduling.rs
1960Maximum Product of the Length of Two Palindromic Substringsmaximum-product-of-the-length-of-two-palindromic-substrings.rs
1862Sum of Floored Pairssum-of-floored-pairs.rs
1916Count Ways to Build Rooms in an Ant Colonycount-ways-to-build-rooms-in-an-ant-colony.rs
2079Watering Plantswatering-plants.cc
1944Number of Visible People in a Queuenumber-of-visible-people-in-a-queue.rs
1405Longest Happy Stringlongest-happy-string.rs
2080Range Frequency Queriesrange-frequency-queries.cc
1627Graph Connectivity With Thresholdgraph-connectivity-with-threshold.rs
1109Corporate Flight Bookingscorporate-flight-bookings.rs
1105Filling Bookcase Shelvesfilling-bookcase-shelves.rs
1094Car Poolingcar-pooling.rs
1081Smallest Subsequence of Distinct Characterssmallest-subsequence-of-distinct-characters.nim
1054Distant Barcodesdistant-barcodes.rs
1044Longest Duplicate Substringlongest-duplicate-substring.rs
1043Partition Array for Maximum Sumpartition-array-for-maximum-sum.rs
1042Flower Planting With No Adjacentflower-planting-with-no-adjacent.cc
1041Robot Bounded In Circlerobot-bounded-in-circle.cc
1036Escape a Large Mazeescape-a-large-maze.cc
1035Uncrossed Linesuncrossed-lines.cc
1034Coloring A Bordercoloring-a-border.cc
1033Moving Stones Until Consecutivemoving-stones-until-consecutive.cc
1032Stream of Charactersstream-of-characters.cc
1031Maximum Sum of Two Non-Overlapping Subarraysmaximum-sum-of-two-non-overlapping-subarrays.cc
1029Two City Schedulingtwo-city-scheduling.cc
1030Matrix Cells in Distance Ordermatrix-cells-in-distance-order.cc
1028Recover a Tree From Preorder Traversalrecover-a-tree-from-preorder-traversal.cc
1026Maximum Difference Between Node and Ancestormaximum-difference-between-node-and-ancestor.cc
1025Divisor Gamedivisor-game.cc
1020Number of Enclavesnumber-of-enclaves.cc
1019Next Greater Node In Linked Listnext-greater-node-in-linked-list.cc
1018Binary Prefix Divisible By 5binary-prefix-divisible-by-5.cc
1017Convert to Base -2convert-to-base-2.cc
1016Binary String With Substrings Representing 1 To Nbinary-string-with-substrings-representing-1-to-n.cc
1015Smallest Integer Divisible by Ksmallest-integer-divisible-by-k.cc
1014Best Sightseeing Pairbest-sightseeing-pair.cc
1013Partition Array Into Three Parts With Equal Sumpartition-array-into-three-parts-with-equal-sum.cc
1011Capacity To Ship Packages Within D Dayscapacity-to-ship-packages-within-d-days.cc
1010Pairs of Songs With Total Durations Divisible by 60pairs-of-songs-with-total-durations-divisible-by-60.cc
1009Complement of Base 10 Integercomplement-of-base-10-integer.cc
1008Construct Binary Search Tree from Preorder Traversalconstruct-binary-search-tree-from-preorder-traversal.cc
1007Minimum Domino Rotations For Equal Rowminimum-domino-rotations-for-equal-row.cc
1006Clumsy Factorialclumsy-factorial.cc
1005Maximize Sum Of Array After K Negationsmaximize-sum-of-array-after-k-negations.cc
1004Max Consecutive Ones IIImax-consecutive-ones-iii.nim
1003Check If Word Is Valid After Substitutionscheck-if-word-is-valid-after-substitutions.cc
1002Find Common Charactersfind-common-characters.cc
1000Minimum Cost to Merge Stonesminimum-cost-to-merge-stones.cc
996Number of Squareful Arraysnumber-of-squareful-arrays.cc
995Minimum Number of K Consecutive Bit Flipsminimum-number-of-k-consecutive-bit-flips.rs
994Rotting Orangesrotting-oranges.cc
993Cousins in Binary Treecousins-in-binary-tree.cc
992Subarrays with K Different Integerssubarrays-with-k-different-integers.cc
991Broken Calculatorbroken-calculator.cc
990Satisfiability of Equality Equationssatisfiability-of-equality-equations.cc
989Add to Array-Form of Integeradd-to-array-form-of-integer.cc
984String Without AAA or BBBstring-without-aaa-or-bbb.rs
980Unique Paths IIIunique-paths-iii.cc
979Distribute Coins in Binary Treedistribute-coins-in-binary-tree.cc
978Longest Turbulent Subarraylongest-turbulent-subarray.cc
977Squares of a Sorted Arraysquares-of-a-sorted-array.cc
973K Closest Points to Origink-closest-points-to-origin.cc
960Delete Columns to Make Sorted IIIdelete-columns-to-make-sorted-iii.cc
959Regions Cut By Slashesregions-cut-by-slashes.cc
958Check Completeness of a Binary Treecheck-completeness-of-a-binary-tree.cc
957Prison Cells After N Daysprison-cells-after-n-days.cc
956Tallest Billboardtallest-billboard.cc
955Delete Columns to Make Sorted IIdelete-columns-to-make-sorted-ii.cc
954Array of Doubled Pairsarray-of-doubled-pairs.cc
953Verifying an Alien Dictionaryverifying-an-alien-dictionary.cc
952Largest Component Size by Common Factorlargest-component-size-by-common-factor.rs
940Distinct Subsequences IIdistinct-subsequences-ii.rs
939Minimum Area Rectangleminimum-area-rectangle.cc
938Range Sum of BSTrange-sum-of-bst.cc
932Beautiful Arraybeautiful-array.cc
931Minimum Falling Path Summinimum-falling-path-sum.cc
930Binary Subarrays With Sumbinary-subarrays-with-sum.nim
929Unique Email Addressesunique-email-addresses.cc
921Minimum Add to Make Parentheses Validminimum-add-to-make-parentheses-valid.rs
911Online Electiononline-election.cc
910Smallest Range IIsmallest-range-ii.cc
909Snakes and Ladderssnakes-and-ladders.cc
908Smallest Range Ismallest-range-i.cc
907Sum of Subarray Minimumssum-of-subarray-minimums.rs
906Super Palindromessuper-palindromes.rs
903Valid Permutations for DI Sequencevalid-permutations-for-di-sequence.rs
902Numbers At Most N Given Digit Setnumbers-at-most-n-given-digit-set.cc
901Online Stock Spanonline-stock-span.cc
900RLE Iteratorrle-iterator.cc
899Orderly Queueorderly-queue.cc
898Bitwise ORs of Subarraysbitwise-ors-of-subarrays.cc
897Increasing Order Search Treeincreasing-order-search-tree.cc
896Monotonic Arraymonotonic-array.cc
891Sum of Subsequence Widthssum-of-subsequence-widths.cc
890Find and Replace Patternfind-and-replace-pattern.cc
889Construct Binary Tree from Preorder and Postorder Traversalconstruct-binary-tree-from-preorder-and-postorder-traversal.cc
888Fair Candy Swapfair-candy-swap.cc
883Projection Area of 3D Shapesprojection-area-of-3d-shapes.cc
882Reachable Nodes In Subdivided Graphreachable-nodes-in-subdivided-graph.cc
881Boats to Save Peopleboats-to-save-people.cc
880Decoded String at Indexdecoded-string-at-index.cc
875Koko Eating Bananaskoko-eating-bananas.cc
874Walking Robot Simulationwalking-robot-simulation.cc
873Length of Longest Fibonacci Subsequencelength-of-longest-fibonacci-subsequence.cc
872Leaf-Similar Treesleaf-similar-trees.cc
871Minimum Number of Refueling Stopsminimum-number-of-refueling-stops.cc
870Advantage Shuffleadvantage-shuffle.cc
869Reordered Power of 2reordered-power-of-2.cc
868Binary Gapbinary-gap.cc
866Prime Palindromeprime-palindrome.rs
859Buddy Stringsbuddy-strings.cc
858Mirror Reflectionmirror-reflection.cc
857Minimum Cost to Hire K Workersminimum-cost-to-hire-k-workers.rs
856Score of Parenthesesscore-of-parentheses.cc
855Exam Roomexam-room.cc
854K-Similar Stringsk-similar-strings.cc
853Car Fleetcar-fleet.cc
852Peak Index in a Mountain Arraypeak-index-in-a-mountain-array.cc
843Guess the Wordguess-the-word.cc
842Split Array into Fibonacci Sequencesplit-array-into-fibonacci-sequence.cc
841Keys and Roomskeys-and-rooms.cc
840Magic Squares In Gridmagic-squares-in-grid.cc
835Image Overlapimage-overlap.cc
834Sum of Distances in Treesum-of-distances-in-tree.cc
833Find And Replace in Stringfind-and-replace-in-string.cc
832Flipping an Imageflipping-an-image.cc
827Making A Large Islandmaking-a-large-island.cc
826Most Profit Assigning Workmost-profit-assigning-work.cc
825Friends Of Appropriate Agesfriends-of-appropriate-ages.cc
824Goat Latingoat-latin.cc
815Bus Routesbus-routes.cc
814Binary Tree Pruningbinary-tree-pruning.cc
813Largest Sum of Averageslargest-sum-of-averages.cc
812Largest Triangle Arealargest-triangle-area.cc
803Bricks Falling When Hitbricks-falling-when-hit.cc
802Find Eventual Safe Statesfind-eventual-safe-states.rs
798Smallest Rotation with Highest Scoresmallest-rotation-with-highest-score.rs
795Number of Subarrays with Bounded Maximumnumber-of-subarrays-with-bounded-maximum.rs
792Number of Matching Subsequencesnumber-of-matching-subsequences.rs
767Reorganize Stringreorganize-string.rs
719Find K-th Smallest Pair Distancefind-k-th-smallest-pair-distance.nim
67924 Game24-game.nim
678Valid Parenthesis Stringvalid-parenthesis-string.rs
673Number of Longest Increasing Subsequencenumber-of-longest-increasing-subsequence.cc
668Kth Smallest Number in Multiplication Tablekth-smallest-number-in-multiplication-table.nim
664Strange Printerstrange-printer.rs
652Find Duplicate Subtreesfind-duplicate-subtrees.cc
643Maximum Average Subarray Imaximum-average-subarray-i.cc
636Exclusive Time of Functionsexclusive-time-of-functions.cc
635Design Log Storage Systemdesign-log-storage-system.cc
634Find the Derangement of An Arrayfind-the-derangement-of-an-array.cc
633Sum of Square Numberssum-of-square-numbers.cc
631Design Excel Sum Formuladesign-excel-sum-formula.cc
630Course Schedule IIIcourse-schedule-iii.rs
629K Inverse Pairs Arrayk-inverse-pairs-array.cc
628Maximum Product of Three Numbersmaximum-product-of-three-numbers.cc
617Merge Two Binary Treesmerge-two-binary-trees.cc
616Add Bold Tag in Stringadd-bold-tag-in-string.cc
611Valid Triangle Numbervalid-triangle-number.cc
604Design Compressed String Iteratordesign-compressed-string-iterator.cc
600Non-negative Integers without Consecutive Onesnon-negative-integers-without-consecutive-ones.cc
599Minimum Index Sum of Two Listsminimum-index-sum-of-two-lists.cc
598Range Addition IIrange-addition-ii.cc
594Longest Harmonious Subsequencelongest-harmonious-subsequence.cc
593Valid Squarevalid-square.cc
592Fraction Addition and Subtractionfraction-addition-and-subtraction.cc
588Design In-Memory File Systemdesign-in-memory-file-system.cc
587Erect the Fenceerect-the-fence.cc
583Delete Operation for Two Stringsdelete-operation-for-two-strings.cc
582Kill Processkill-process.cc
581Shortest Unsorted Continuous Subarrayshortest-unsorted-continuous-subarray.cc
575Distribute Candiesdistribute-candies.cc
565Array Nestingarray-nesting.cc
556Next Greater Element IIInext-greater-element-iii.cc
553Optimal Divisionoptimal-division.cc
552Student Attendance Record IIstudent-attendance-record-ii.cc
543Diameter of Binary Treediameter-of-binary-tree.nim
533Lonely Pixel IIlonely-pixel-ii.cc
531Lonely Pixel Ilonely-pixel-i.cc
524Longest Word in Dictionary through Deletinglongest-word-in-dictionary-through-deleting.rs
514Freedom Trailfreedom-trail.cc
508Most Frequent Subtree Summost-frequent-subtree-sum.cc
507Perfect Numberperfect-number.cc
504Base 7base-7.cc
502IPOipo.rs
501Find Mode in Binary Search Treefind-mode-in-binary-search-tree.cc
500Keyboard Rowkeyboard-row.cc
495Teemo Attackingteemo-attacking.cc
494Target Sumtarget-sum.cc
491Increasing Subsequencesincreasing-subsequences.cc
490The Mazethe-maze.cc
485Max Consecutive Onesmax-consecutive-ones.cc
483Smallest Good Basesmallest-good-base.cc
482License Key Formattinglicense-key-formatting.cc
481Magical Stringmagical-string.cc
480Sliding Window Mediansliding-window-median.cc
479Largest Palindrome Productlargest-palindrome-product.rs
477Total Hamming Distancetotal-hamming-distance.cc
476Number Complementnumber-complement.cc
475Heatersheaters.cc
474Ones and Zeroesones-and-zeroes.cc
473Matchsticks to Squarematchsticks-to-square.cc
472Concatenated Wordsconcatenated-words.rs
469Convex Polygonconvex-polygon.cc
468Validate IP Addressvalidate-ip-address.cc
467Unique Substrings in Wraparound Stringunique-substrings-in-wraparound-string.cc
466Count The Repetitionscount-the-repetitions.cc
465Optimal Account Balancingoptimal-account-balancing.cc
464Can I Wincan-i-win.cc
463Island Perimeterisland-perimeter.cc
462Minimum Moves to Equal Array Elements IIminimum-moves-to-equal-array-elements-ii.cc
461Hamming Distancehamming-distance.cc
459Repeated Substring Patternrepeated-substring-pattern.cc
456132 Pattern132-pattern.cc
455Assign Cookiesassign-cookies.cc
4544Sum II4sum-ii.cc
453Minimum Moves to Equal Array Elementsminimum-moves-to-equal-array-elements.cc
452Minimum Number of Arrows to Burst Balloonsminimum-number-of-arrows-to-burst-balloons.cc
447Number of Boomerangsnumber-of-boomerangs.cc
446Arithmetic Slices II - Subsequencearithmetic-slices-ii-subsequence.cc
444Sequence Reconstructionsequence-reconstruction.cc
441Arranging Coinsarranging-coins.cc
440K-th Smallest in Lexicographical Orderk-th-smallest-in-lexicographical-order.cc
439Ternary Expression Parserternary-expression-parser.cc
438Find All Anagrams in a Stringfind-all-anagrams-in-a-string.cc
437Path Sum IIIpath-sum-iii.cc
436Find Right Intervalfind-right-interval.cc
435Non-overlapping Intervalsnon-overlapping-intervals.cc
434Number of Segments in a Stringnumber-of-segments-in-a-string.cc
432All O`one Data Structureall-oone-data-structure.cc
424Longest Repeating Character Replacementlongest-repeating-character-replacement.nim
423Reconstruct Original Digits from Englishreconstruct-original-digits-from-english.cc
422Valid Word Squarevalid-word-square.cc
421Maximum XOR of Two Numbers in an Arraymaximum-xor-of-two-numbers-in-an-array.rs
420Strong Password Checkerstrong-password-checker.cc
419Battleships in a Boardbattleships-in-a-board.cc
417Pacific Atlantic Water Flowpacific-atlantic-water-flow.cc
416Partition Equal Subset Sumpartition-equal-subset-sum.cc
415Add Stringsadd-strings.cc
414Third Maximum Numberthird-maximum-number.cc
413Arithmetic Slicesarithmetic-slices.cc
412Fizz Buzzfizz-buzz.cc
410Split Array Largest Sumsplit-array-largest-sum.cc
409Longest Palindromelongest-palindrome.cc
408Valid Word Abbreviationvalid-word-abbreviation.cc
407Trapping Rain Water IItrapping-rain-water-ii.cc
406Queue Reconstruction by Heightqueue-reconstruction-by-height.cc
405Convert a Number to Hexadecimalconvert-a-number-to-hexadecimal.cc
404Sum of Left Leavessum-of-left-leaves.cc
403Frog Jumpfrog-jump.cc
402Remove K Digitsremove-k-digits.nim
401Binary Watchbinary-watch.cc
400Nth Digitnth-digit.cc
399Evaluate Divisionevaluate-division.cc
398Random Pick Indexrandom-pick-index.cc
397Integer Replacementinteger-replacement.cc
396Rotate Functionrotate-function.cc
395Longest Substring with At Least K Repeating Characterslongest-substring-with-at-least-k-repeating-characters.cc
394Decode Stringdecode-string.cc
393UTF-8 Validationutf-8-validation.cc
392Is Subsequenceis-subsequence.cc
391Perfect Rectangleperfect-rectangle.cc
390Elimination Gameelimination-game.cc
389Find the Differencefind-the-difference.cc
388Longest Absolute File Pathlongest-absolute-file-path.cc
387First Unique Character in a Stringfirst-unique-character-in-a-string.cc
386Lexicographical Numberslexicographical-numbers.cc
385Mini Parsermini-parser.cc
384Shuffle an Arrayshuffle-an-array.cc
383Ransom Noteransom-note.cc
382Linked List Random Nodelinked-list-random-node.cc
381Insert Delete GetRandom O(1) - Duplicates allowedinsert-delete-getrandom-o1-duplicates-allowed.cc
380Insert Delete GetRandom O(1)insert-delete-getrandom-o1.cc
379Design Phone Directorydesign-phone-directory.cc
378Kth Smallest Element in a Sorted Matrixkth-smallest-element-in-a-sorted-matrix.nim
377Combination Sum IVcombination-sum-iv.cc
376Wiggle Subsequencewiggle-subsequence.cc
375Guess Number Higher or Lower IIguess-number-higher-or-lower-ii.cc
374Guess Number Higher or Lowerguess-number-higher-or-lower.cc
373Find K Pairs with Smallest Sumsfind-k-pairs-with-smallest-sums.nim
372Super Powsuper-pow.cc
371Sum of Two Integerssum-of-two-integers.cc
370Range Additionrange-addition.cc
369Plus One Linked Listplus-one-linked-list.cc
368Largest Divisible Subsetlargest-divisible-subset.cc
367Valid Perfect Squarevalid-perfect-square.cc
366Find Leaves of Binary Treefind-leaves-of-binary-tree.cc
365Water and Jug Problemwater-and-jug-problem.cc
364Nested List Weight Sum IInested-list-weight-sum-ii.cc
362Design Hit Counterdesign-hit-counter.cc
361Bomb Enemybomb-enemy.cc
360Sort Transformed Arraysort-transformed-array.cc
359Logger Rate Limiterlogger-rate-limiter.cc
358Rearrange String k Distance Apartrearrange-string-k-distance-apart.cc
357Count Numbers with Unique Digitscount-numbers-with-unique-digits.cc
356Line Reflectionline-reflection.cc
355Design Twitterdesign-twitter.cc
354Russian Doll Envelopesrussian-doll-envelopes.rs
353Design Snake Gamedesign-snake-game.cc
352Data Stream as Disjoint Intervalsdata-stream-as-disjoint-intervals.cc
351Android Unlock Patternsandroid-unlock-patterns.cc
350Intersection of Two Arrays IIintersection-of-two-arrays-ii.cc
349Intersection of Two Arraysintersection-of-two-arrays.cc
348Design Tic-Tac-Toedesign-tic-tac-toe.cc
347Top K Frequent Elementstop-k-frequent-elements.rs
346Moving Average from Data Streammoving-average-from-data-stream.cc
345Reverse Vowels of a Stringreverse-vowels-of-a-string.cc
344Reverse Stringreverse-string.cc
343Integer Breakinteger-break.cc
342Power of Fourpower-of-four.cc
341Flatten Nested List Iteratorflatten-nested-list-iterator.cc
340Longest Substring with At Most K Distinct Characterslongest-substring-with-at-most-k-distinct-characters.cc
339Nested List Weight Sumnested-list-weight-sum.cc
338Counting Bitscounting-bits.cc
337House Robber IIIhouse-robber-iii.cc
336Palindrome Pairspalindrome-pairs.cc
335Self Crossingself-crossing.cc
334Increasing Triplet Subsequenceincreasing-triplet-subsequence.cc
333Largest BST Subtreelargest-bst-subtree.cc
332Reconstruct Itineraryreconstruct-itinerary.cc
331Verify Preorder Serialization of a Binary Treeverify-preorder-serialization-of-a-binary-tree.cc
330Patching Arraypatching-array.cc
329Longest Increasing Path in a Matrixlongest-increasing-path-in-a-matrix.cc
328Odd Even Linked Listodd-even-linked-list.cc
327Count of Range Sumcount-of-range-sum.cc
326Power of Threepower-of-three.cc
325Maximum Size Subarray Sum Equals kmaximum-size-subarray-sum-equals-k.cc
324Wiggle Sort IIwiggle-sort-ii.cc
323Number of Connected Components in an Undirected Graphnumber-of-connected-components-in-an-undirected-graph.cc
322Coin Changecoin-change.cc
321Create Maximum Numbercreate-maximum-number.cc
320Generalized Abbreviationgeneralized-abbreviation.cc
319Bulb Switcherbulb-switcher.cc
318Maximum Product of Word Lengthsmaximum-product-of-word-lengths.cc
317Shortest Distance from All Buildingsshortest-distance-from-all-buildings.cc
316Remove Duplicate Lettersremove-duplicate-letters.nim
315Count of Smaller Numbers After Selfcount-of-smaller-numbers-after-self.cc
314Binary Tree Vertical Order Traversalbinary-tree-vertical-order-traversal.cc
313Super Ugly Numbersuper-ugly-number.rs
312Burst Balloonsburst-balloons.cc
311Sparse Matrix Multiplicationsparse-matrix-multiplication.cc
310Minimum Height Treesminimum-height-trees.cc
309Best Time to Buy and Sell Stock with Cooldownbest-time-to-buy-and-sell-stock-with-cooldown.cc
308Range Sum Query 2D - Mutablerange-sum-query-2d-mutable.cc
307Range Sum Query - Mutablerange-sum-query-mutable.cc
306Additive Numberadditive-number.cc
305Number of Islands IInumber-of-islands-ii.cc
304Range Sum Query 2D - Immutablerange-sum-query-2d-immutable.cc
303Range Sum Query - Immutablerange-sum-query-immutable.cc
302Smallest Rectangle Enclosing Black Pixelssmallest-rectangle-enclosing-black-pixels.cc
301Remove Invalid Parenthesesremove-invalid-parentheses.rs
300Longest Increasing Subsequencelongest-increasing-subsequence.rs
299Bulls and Cowsbulls-and-cows.cc
298Binary Tree Longest Consecutive Sequencebinary-tree-longest-consecutive-sequence.cc
297Serialize and Deserialize Binary Treeserialize-and-deserialize-binary-tree.cc
296Best Meeting Pointbest-meeting-point.cc
295Find Median from Data Streamfind-median-from-data-stream.cc
294Flip Game IIflip-game-ii.cc
293Flip Gameflip-game.cc
292Nim Gamenim-game.cc
291Word Pattern IIword-pattern-ii.cc
290Word Patternword-pattern.cc
289Game of Lifegame-of-life.cc
288Unique Word Abbreviationunique-word-abbreviation.cc
287Find the Duplicate Numberfind-the-duplicate-number.cc
286Walls and Gateswalls-and-gates.cc
285Inorder Successor in BSTinorder-successor-in-bst.cc
284Peeking Iteratorpeeking-iterator.cc
283Move Zeroesmove-zeroes.cc
282Expression Add Operatorsexpression-add-operators.cc
281Zigzag Iteratorzigzag-iterator.cc
280Wiggle Sortwiggle-sort.cc
279Perfect Squaresperfect-squares.cc
278First Bad Versionfirst-bad-version.cc
277Find the Celebrityfind-the-celebrity.cc
276Paint Fencepaint-fence.cc
275H-Index IIh-index-ii.cc
274H-Indexh-index.cc
273Integer to English Wordsinteger-to-english-words.cc
272Closest Binary Search Tree Value IIclosest-binary-search-tree-value-ii.cc
271Encode and Decode Stringsencode-and-decode-strings.cc
270Closest Binary Search Tree Valueclosest-binary-search-tree-value.cc
269Alien Dictionaryalien-dictionary.cc
268Missing Numbermissing-number.cc
267Palindrome Permutation IIpalindrome-permutation-ii.cc
266Palindrome Permutationpalindrome-permutation.cc
265Paint House IIpaint-house-ii.cc
264Ugly Number IIugly-number-ii.rs
263Ugly Numberugly-number.cc
261Graph Valid Treegraph-valid-tree.cc
260Single Number IIIsingle-number-iii.cc
2593Sum Smaller3sum-smaller.cc
258Add Digitsadd-digits.cc
257Binary Tree Pathsbinary-tree-paths.cc
256Paint Housepaint-house.cc
255Verify Preorder Sequence in Binary Search Treeverify-preorder-sequence-in-binary-search-tree.cc
254Factor Combinationsfactor-combinations.cc
253Meeting Rooms IImeeting-rooms-ii.cc
252Meeting Roomsmeeting-rooms.cc
251Flatten 2D Vectorflatten-2d-vector.cc
250Count Univalue Subtreescount-univalue-subtrees.cc
249Group Shifted Stringsgroup-shifted-strings.cc
248Strobogrammatic Number IIIstrobogrammatic-number-iii.cc
247Strobogrammatic Number IIstrobogrammatic-number-ii.cc
246Strobogrammatic Numberstrobogrammatic-number.cc
245Shortest Word Distance IIIshortest-word-distance-iii.cc
244Shortest Word Distance IIshortest-word-distance-ii.cc
243Shortest Word Distanceshortest-word-distance.cc
242Valid Anagramvalid-anagram.cc
241Different Ways to Add Parenthesesdifferent-ways-to-add-parentheses.nim
240Search a 2D Matrix IIsearch-a-2d-matrix-ii.cc
239Sliding Window Maximumsliding-window-maximum.cc
238Product of Array Except Selfproduct-of-array-except-self.cc
237Delete Node in a Linked Listdelete-node-in-a-linked-list.cc
236Lowest Common Ancestor of a Binary Treelowest-common-ancestor-of-a-binary-tree.cc
235Lowest Common Ancestor of a Binary Search Treelowest-common-ancestor-of-a-binary-search-tree.cc
234Palindrome Linked Listpalindrome-linked-list.cc
233Number of Digit Onenumber-of-digit-one.cc
232Implement Queue using Stacksimplement-queue-using-stacks.cc
231Power of Twopower-of-two.cc
230Kth Smallest Element in a BSTkth-smallest-element-in-a-bst.cc
229Majority Element IImajority-element-ii.cc
228Summary Rangessummary-ranges.cc
227Basic Calculator IIbasic-calculator-ii.nim
226Invert Binary Treeinvert-binary-tree.cc
225Implement Stack using Queuesimplement-stack-using-queues.cc
224Basic Calculatorbasic-calculator.cc
223Rectangle Arearectangle-area.cc
222Count Complete Tree Nodescount-complete-tree-nodes.cc
221Maximal Squaremaximal-square.cc
220Contains Duplicate IIIcontains-duplicate-iii.cc
219Contains Duplicate IIcontains-duplicate-ii.cc
218The Skyline Problemthe-skyline-problem.cc
217Contains Duplicatecontains-duplicate.cc
216Combination Sum IIIcombination-sum-iii.cc
215Kth Largest Element in an Arraykth-largest-element-in-an-array.rs
214Shortest Palindromeshortest-palindrome.rs
213House Robber IIhouse-robber-ii.cc
212Word Search IIword-search-ii.rs
210Course Schedule IIcourse-schedule-ii.nim
209Minimum Size Subarray Summinimum-size-subarray-sum.cc
208Implement Trie (Prefix Tree)implement-trie-prefix-tree.cc
207Course Schedulecourse-schedule.nim
206Reverse Linked Listreverse-linked-list.cc
205Isomorphic Stringsisomorphic-strings.cc
204Count Primescount-primes.cc
203Remove Linked List Elementsremove-linked-list-elements.cc
202Happy Numberhappy-number.cc
201Bitwise AND of Numbers Rangebitwise-and-of-numbers-range.cc
200Number of Islandsnumber-of-islands.cc
199Binary Tree Right Side Viewbinary-tree-right-side-view.cc
198House Robberhouse-robber.cc
191Number of 1 Bitsnumber-of-1-bits.cc
190Reverse Bitsreverse-bits.cc
189Rotate Arrayrotate-array.cc
188Best Time to Buy and Sell Stock IVbest-time-to-buy-and-sell-stock-iv.cc
187Repeated DNA Sequencesrepeated-dna-sequences.cc
186Reverse Words in a String IIreverse-words-in-a-string-ii.cc
179Largest Numberlargest-number.cc
174Dungeon Gamedungeon-game.cc
173Binary Search Tree Iteratorbinary-search-tree-iterator.cc
172Factorial Trailing Zeroesfactorial-trailing-zeroes.cc
171Excel Sheet Column Numberexcel-sheet-column-number.cc
170Two Sum III - Data structure designtwo-sum-iii-data-structure-design.cc
169Majority Elementmajority-element.cc
168Excel Sheet Column Titleexcel-sheet-column-title.cc
167Two Sum II - Input Array Is Sortedtwo-sum-ii-input-array-is-sorted.cc
166Fraction to Recurring Decimalfraction-to-recurring-decimal.cc
165Compare Version Numberscompare-version-numbers.cc
164Maximum Gapmaximum-gap.cc
163Missing Rangesmissing-ranges.cc
162Find Peak Elementfind-peak-element.cc
161One Edit Distanceone-edit-distance.cc
160Intersection of Two Linked Listsintersection-of-two-linked-lists.cc
159Longest Substring with At Most Two Distinct Characterslongest-substring-with-at-most-two-distinct-characters.cc
158Read N Characters Given read4 II - Call Multiple Timesread-n-characters-given-read4-ii-call-multiple-times.cc
157Read N Characters Given Read4read-n-characters-given-read4.cc
156Binary Tree Upside Downbinary-tree-upside-down.cc
155Min Stackmin-stack.cc
154Find Minimum in Rotated Sorted Array IIfind-minimum-in-rotated-sorted-array-ii.cc
153Find Minimum in Rotated Sorted Arrayfind-minimum-in-rotated-sorted-array.cc
152Maximum Product Subarraymaximum-product-subarray.cc
151Reverse Words in a Stringreverse-words-in-a-string.cc
150Evaluate Reverse Polish Notationevaluate-reverse-polish-notation.cc
149Max Points on a Linemax-points-on-a-line.cc
148Sort Listsort-list.cc
147Insertion Sort Listinsertion-sort-list.cc
146LRU Cachelru-cache.cc
145Binary Tree Postorder Traversalbinary-tree-postorder-traversal.cc
144Binary Tree Preorder Traversalbinary-tree-preorder-traversal.cc
143Reorder Listreorder-list.cc
142Linked List Cycle IIlinked-list-cycle-ii.cc
141Linked List Cyclelinked-list-cycle.cc
140Word Break IIword-break-ii.rs
139Word Breakword-break.cc
138Copy List with Random Pointercopy-list-with-random-pointer.cc
137Single Number IIsingle-number-ii.cc
136Single Numbersingle-number.cc
135Candycandy.rs
134Gas Stationgas-station.cc
133Clone Graphclone-graph.cc
132Palindrome Partitioning IIpalindrome-partitioning-ii.cc
131Palindrome Partitioningpalindrome-partitioning.rs
130Surrounded Regionssurrounded-regions.cc
129Sum Root to Leaf Numberssum-root-to-leaf-numbers.cc
128Longest Consecutive Sequencelongest-consecutive-sequence.cc
127Word Ladderword-ladder.cc
126Word Ladder IIword-ladder-ii.cc
125Valid Palindromevalid-palindrome.cc
124Binary Tree Maximum Path Sumbinary-tree-maximum-path-sum.nim
123Best Time to Buy and Sell Stock IIIbest-time-to-buy-and-sell-stock-iii.cc
122Best Time to Buy and Sell Stock IIbest-time-to-buy-and-sell-stock-ii.cc
121Best Time to Buy and Sell Stockbest-time-to-buy-and-sell-stock.cc
120Triangletriangle.cc
119Pascal's Triangle IIpascals-triangle-ii.cc
118Pascal's Trianglepascals-triangle.cc
117Populating Next Right Pointers in Each Node IIpopulating-next-right-pointers-in-each-node-ii.cc
116Populating Next Right Pointers in Each Nodepopulating-next-right-pointers-in-each-node.cc
115Distinct Subsequencesdistinct-subsequences.cc
114Flatten Binary Tree to Linked Listflatten-binary-tree-to-linked-list.cc
113Path Sum IIpath-sum-ii.cc
112Path Sumpath-sum.cc
111Minimum Depth of Binary Treeminimum-depth-of-binary-tree.cc
110Balanced Binary Treebalanced-binary-tree.cc
109Convert Sorted List to Binary Search Treeconvert-sorted-list-to-binary-search-tree.cc
108Convert Sorted Array to Binary Search Treeconvert-sorted-array-to-binary-search-tree.cc
107Binary Tree Level Order Traversal IIbinary-tree-level-order-traversal-ii.cc
106Construct Binary Tree from Inorder and Postorder Traversalconstruct-binary-tree-from-inorder-and-postorder-traversal.cc
105Construct Binary Tree from Preorder and Inorder Traversalconstruct-binary-tree-from-preorder-and-inorder-traversal.cc
104Maximum Depth of Binary Treemaximum-depth-of-binary-tree.cc
103Binary Tree Zigzag Level Order Traversalbinary-tree-zigzag-level-order-traversal.cc
102Binary Tree Level Order Traversalbinary-tree-level-order-traversal.cc
101Symmetric Treesymmetric-tree.cc
100Same Treesame-tree.cc
99Recover Binary Search Treerecover-binary-search-tree.cc
98Validate Binary Search Treevalidate-binary-search-tree.cc
97Interleaving Stringinterleaving-string.cc
96Unique Binary Search Treesunique-binary-search-trees.cc
95Unique Binary Search Trees IIunique-binary-search-trees-ii.cc
94Binary Tree Inorder Traversalbinary-tree-inorder-traversal.cc
93Restore IP Addressesrestore-ip-addresses.cc
92Reverse Linked List IIreverse-linked-list-ii.cc
91Decode Waysdecode-ways.cc
90Subsets IIsubsets-ii.cc
89Gray Codegray-code.cc
88Merge Sorted Arraymerge-sorted-array.cc
87Scramble Stringscramble-string.cc
86Partition Listpartition-list.cc
85Maximal Rectanglemaximal-rectangle.cc
84Largest Rectangle in Histogramlargest-rectangle-in-histogram.cc
83Remove Duplicates from Sorted Listremove-duplicates-from-sorted-list.cc
82Remove Duplicates from Sorted List IIremove-duplicates-from-sorted-list-ii.cc
81Search in Rotated Sorted Array IIsearch-in-rotated-sorted-array-ii.cc
80Remove Duplicates from Sorted Array IIremove-duplicates-from-sorted-array-ii.cc
79Word Searchword-search.cc
78Subsetssubsets.cc
77Combinationscombinations.cc
76Minimum Window Substringminimum-window-substring.cc
75Sort Colorssort-colors.cc
74Search a 2D Matrixsearch-a-2d-matrix.cc
73Set Matrix Zeroesset-matrix-zeroes.cc
72Edit Distanceedit-distance.cc
71Simplify Pathsimplify-path.cc
70Climbing Stairsclimbing-stairs.cc
69Sqrt(x)sqrtx.cc
68Text Justificationtext-justification.cc
67Add Binaryadd-binary.cc
66Plus Oneplus-one.cc
65Valid Numbervalid-number.cc
64Minimum Path Summinimum-path-sum.cc
63Unique Paths IIunique-paths-ii.cc
62Unique Pathsunique-paths.cc
61Rotate Listrotate-list.cc
60Permutation Sequencepermutation-sequence.rs
59Spiral Matrix IIspiral-matrix-ii.cc
58Length of Last Wordlength-of-last-word.cc
57Insert Intervalinsert-interval.cc
56Merge Intervalsmerge-intervals.cc
55Jump Gamejump-game.cc
54Spiral Matrixspiral-matrix.cc
53Maximum Subarraymaximum-subarray.cc
52N-Queens IIn-queens-ii.cc
51N-Queensn-queens.cc
50Pow(x, n)powx-n.cc
48Rotate Imagerotate-image.rs
47Permutations IIpermutations-ii.cc
46Permutationspermutations.cc
45Jump Game IIjump-game-ii.cc
44Wildcard Matchingwildcard-matching.cc
43Multiply Stringsmultiply-strings.cc
42Trapping Rain Watertrapping-rain-water.cc
41First Missing Positivefirst-missing-positive.cc
40Combination Sum IIcombination-sum-ii.cc
39Combination Sumcombination-sum.cc
38Count and Saycount-and-say.cc
37Sudoku Solversudoku-solver.cc
36Valid Sudokuvalid-sudoku.cc
35Search Insert Positionsearch-insert-position.cc
33Search in Rotated Sorted Arraysearch-in-rotated-sorted-array.cc
32Longest Valid Parentheseslongest-valid-parentheses.cc
31Next Permutationnext-permutation.cc
30Substring with Concatenation of All Wordssubstring-with-concatenation-of-all-words.cc
29Divide Two Integersdivide-two-integers.cc
28Implement strStr()implement-strstr.cc
27Remove Elementremove-element.cc
26Remove Duplicates from Sorted Arrayremove-duplicates-from-sorted-array.cc
25Reverse Nodes in k-Groupreverse-nodes-in-k-group.cc
24Swap Nodes in Pairsswap-nodes-in-pairs.cc
23Merge k Sorted Listsmerge-k-sorted-lists.cc
22Generate Parenthesesgenerate-parentheses.cc
21Merge Two Sorted Listsmerge-two-sorted-lists.cc
20Valid Parenthesesvalid-parentheses.cc
19Remove Nth Node From End of Listremove-nth-node-from-end-of-list.cc
184Sum4sum.cc
17Letter Combinations of a Phone Numberletter-combinations-of-a-phone-number.cc
163Sum Closest3sum-closest.cc
153Sum3sum.cc
14Longest Common Prefixlongest-common-prefix.cc
13Roman to Integerroman-to-integer.cc
12Integer to Romaninteger-to-roman.cc
11Container With Most Watercontainer-with-most-water.cc
10Regular Expression Matchingregular-expression-matching.cc
9Palindrome Numberpalindrome-number.cc
8String to Integer (atoi)string-to-integer-atoi.cc
7Reverse Integerreverse-integer.cc
6Zigzag Conversionzigzag-conversion.cc
5Longest Palindromic Substringlongest-palindromic-substring.rs
4Median of Two Sorted Arraysmedian-of-two-sorted-arrays.cc
3Longest Substring Without Repeating Characterslongest-substring-without-repeating-characters.cc
2Add Two Numbersadd-two-numbers.cc
1Two Sumtwo-sum.cc

About

Solutions of LeetCode Online Judge

Topics

Resources

Stars

491 stars

Watchers

33 watching

Forks

Releases

Packages

Contributors

Languages