DDSA
Updated daily

LeetCode C# Solutions

Clean, readable C# solutions — built for .NET developers cracking the coding interview.

802
Solved
143
Easy
317
Medium
77
Hard
Advertisement

802 problems

#TitleDifficulty
4Median of Two Sorted ArraysHard
11Container With Most WaterMedium
12Integer to RomanMedium
13Roman to IntegerEasy
14Longest Common PrefixEasy
153SumMedium
163Sum ClosestMedium
19Remove Nth Node From End of ListMedium
22Generate ParenthesesMedium
25Reverse Nodes in k-GroupHard
26Remove Duplicates from Sorted ArrayEasy
27Remove ElementEasy
29Divide Two IntegersMedium
30Substring with Concatenation of All WordsHard
32Longest Valid ParenthesesHard
33Search in Rotated Sorted ArrayMedium
36Valid SudokuMedium
37Sudoku SolverHard
38Count and SayMedium
40Combination Sum IIMedium
44Wildcard MatchingHard
51N-QueensHard
52N-Queens IIHard
56Merge IntervalsMedium
58Length of Last WordEasy
63Unique Paths IIMedium
66Plus OneEasy
67Add BinaryEasy
68Text JustificationHard
70Climbing StairsEasy
73Set Matrix ZeroesMedium
75Sort ColorsMedium
76Minimum Window SubstringHard
85Maximal RectangleHard
86Partition ListMedium
87Scramble StringHard
92Reverse Linked List IIMedium
95Unique Binary Search Trees IIMedium
99Recover Binary Search TreeMedium
100Same TreeEasy
102Binary Tree Level Order TraversalMedium
106Construct Binary Tree from Inorder and Postorder TraversalMedium
107Binary Tree Level Order Traversal IIMedium
108Convert Sorted Array to Binary Search TreeEasy
110Balanced Binary TreeEasy
111Minimum Depth of Binary TreeEasy
112Path SumEasy
113Path Sum IIMedium
114Flatten Binary Tree to Linked ListMedium
118Pascal's TriangleEasy
120TriangleMedium
122Best Time to Buy and Sell Stock IIMedium
126Word Ladder IIHard
135CandyHard
137Single Number IIMedium
144Binary Tree Preorder TraversalEasy
145Binary Tree Postorder TraversalEasy
146LRU CacheMedium
160Intersection of Two Linked ListsEasy
162Find Peak ElementMedium
165Compare Version NumbersMedium
166Fraction to Recurring DecimalMedium
171Excel Sheet Column NumberEasy
172Factorial Trailing ZeroesMedium
174Dungeon GameHard
179Largest NumberMedium
189Rotate ArrayMedium
190Reverse BitsEasy
198House RobberMedium
202Happy NumberEasy
210Course Schedule IIMedium
212Word Search IIHard
213House Robber IIMedium
214Shortest PalindromeHard
218The Skyline ProblemHard
219Contains Duplicate IIEasy
220Contains Duplicate IIIHard
221Maximal SquareMedium
222Count Complete Tree NodesMedium
230Kth Smallest Element in a BSTMedium
231Power of TwoEasy
236Lowest Common Ancestor of a Binary TreeMedium
237Delete Node in a Linked ListEasy
239Sliding Window MaximumHard
241Different Ways to Add ParenthesesMedium
257Binary Tree PathsEasy
263Ugly NumberEasy
264Ugly Number IIMedium
273Integer to English WordsHard
278First Bad VersionEasy
299Bulls and CowsUnknown
303Range Sum Query - ImmutableEasy
304Range Sum Query 2D - ImmutableMedium
309Best Time to Buy and Sell Stock with CooldownMedium
310Minimum Height TreesUnknown
316Remove Duplicate LettersMedium
319Bulb SwitcherMedium
321Create Maximum NumberUnknown
324Wiggle Sort IIMedium
326Power of ThreeEasy
329Longest Increasing Path in a MatrixHard
330Patching ArrayHard
331Verify Preorder Serialization of a Binary TreeUnknown
342Power of FourEasy
344Reverse StringEasy
350Intersection of Two Arrays IIEasy
352Data Stream as Disjoint IntervalsUnknown
367Valid Perfect SquareUnknown
368Largest Divisible SubsetMedium
386Lexicographical NumbersMedium
400Nth DigitMedium
401Binary WatchEasy
405Convert a Number to HexadecimalEasy
407Trapping Rain Water IIHard
416Partition Equal Subset SumMedium
417Pacific Atlantic Water FlowMedium
429N-ary Tree Level Order TraversalMedium
432All O`one Data StructureUnknown
440K-th Smallest in Lexicographical OrderHard
460LFU CacheHard
467Unique Substrings in Wraparound StringMedium
474Ones and ZeroesMedium
476Number ComplementEasy
477Total Hamming DistanceMedium
479Largest Palindrome ProductUnknown
494Target SumMedium
498Diagonal TraverseMedium
500Keyboard RowEasy
502IPOUnknown
508Most Frequent Subtree SumMedium
513Find Bottom Left Tree ValueMedium
515Find Largest Value in Each Tree RowMedium
539Minimum Time DifferenceMedium
554Brick WallMedium
558Logical OR of Two Binary Grids Represented as Quad-TreesUnknown
564Find the Closest PalindromeHard
567Permutation in StringMedium
590N-ary Tree Postorder TraversalEasy
592Fraction Addition and SubtractionUnknown
593Valid SquareMedium
594Longest Harmonious SubsequenceEasy
600Non-negative Integers without Consecutive OnesHard
605Can Place FlowersEasy
611Valid Triangle NumberMedium
623Add One Row to TreeMedium
624Maximum Distance in ArraysUnknown
632Smallest Range Covering Elements from K ListsHard
633Sum of Square NumbersMedium
641Design Circular DequeUnknown
646Maximum Length of Pair ChainMedium
6502 Keys KeyboardMedium
657Robot Return to OriginUnknown
658Find K Closest ElementsMedium
664Strange PrinterHard
670Maximum SwapMedium
678Valid Parenthesis StringMedium
67924 GameHard
684Redundant ConnectionMedium
689Maximum Sum of 3 Non-Overlapping SubarraysUnknown
693Binary Number with Alternating BitsEasy
696Count Binary SubstringsEasy
699Falling SquaresHard
700Search in a Binary Search TreeEasy
703Kth Largest Element in a StreamEasy
706Design HashMapUnknown
707Design Linked ListMedium
709To Lower CaseEasy
712Minimum ASCII Delete Sum for Two StringsMedium
7171-bit and 2-bit CharactersEasy
719Find K-th Smallest Pair DistanceHard
725Split Linked List in PartsMedium
729My Calendar IMedium
731My Calendar IIUnknown
744Find Smallest Letter Greater Than TargetEasy
752Open the LockMedium
756Pyramid Transition MatrixUnknown
757Set Intersection Size At Least TwoUnknown
761Special Binary StringUnknown
762Prime Number of Set Bits in Binary RepresentationMedium
763Partition LabelsMedium
769Max Chunks To Make SortedMedium
773Sliding PuzzleHard
778Swim in Rising WaterHard
781Rabbits in ForestMedium
784Letter Case PermutationMedium
788Rotated DigitsMedium
790Domino and Tromino TilingMedium
796Rotate StringEasy
799Champagne TowerMedium
802Find Eventual Safe StatesMedium
807Max Increase to Keep City SkylineMedium
808Soup ServingsUnknown
812Largest Triangle AreaHard
818Race CarUnknown
820Short Encoding of WordsMedium
821Shortest Distance to a CharacterEasy
822Card Flipping GameUnknown
825Friends Of Appropriate AgesMedium
826Most Profit Assigning WorkMedium
827Making A Large IslandHard
829Consecutive Numbers SumHard
832Flipping an ImageEasy
834Sum of Distances in TreeUnknown
837New 21 GameMedium
838Push DominoesMedium
839Similar String GroupsHard
840Magic Squares In GridMedium
851Loud and RichMedium
855Exam RoomUnknown
856Score of ParenthesesMedium
857Minimum Cost to Hire K WorkersHard
860Lemonade ChangeEasy
862Shortest Subarray with Sum at Least KHard
865Smallest Subtree with all the Deepest NodesMedium
866Prime PalindromeMedium
868Binary GapUnknown
869Reordered Power of 2Medium
873Length of Longest Fibonacci SubsequenceMedium
874Walking Robot SimulationMedium
878Nth Magical NumberHard
884Uncommon Words from Two SentencesEasy
885Spiral Matrix IIIMedium
889Construct Binary Tree from Preorder and Postorder TraversalMedium
890Find and Replace PatternMedium
892Surface Area of 3D ShapesMedium
898Bitwise ORs of SubarraysMedium
902Numbers At Most N Given Digit SetHard
904Fruit Into BasketsMedium
905Sort Array By ParityEasy
908Smallest Range IEasy
909Snakes and LaddersMedium
912Sort an ArrayMedium
916Word SubsetsMedium
917Reverse Only LettersEasy
921Minimum Add to Make Parentheses ValidMedium
928Minimize Malware Spread IIUnknown
944Delete Columns to Make SortedEasy
947Most Stones Removed with Same Row or ColumnMedium
951Flip Equivalent Binary TreesMedium
955Delete Columns to Make Sorted IIMedium
959Regions Cut By SlashesUnknown
960Delete Columns to Make Sorted IIIHard
961N-Repeated Element in Size 2N ArrayUnknown
962Maximum Width RampMedium
965Univalued Binary TreeEasy
966Vowel SpellcheckerMedium
973K Closest Points to OriginMedium
976Largest Perimeter TriangleMedium
981Time Based Key-Value StoreMedium
983Minimum Cost For TicketsMedium
995Minimum Number of K Consecutive Bit FlipsUnknown
998Maximum Binary Tree IIMedium
1000Minimum Cost to Merge StonesHard
1006Clumsy FactorialMedium
1007Minimum Domino Rotations For Equal RowMedium
1009Complement of Base 10 IntegerEasy
1011Capacity To Ship Packages Within D DaysMedium
1014Best Sightseeing PairMedium
1015Smallest Integer Divisible by KMedium
1018Binary Prefix Divisible By 5Easy
1022Sum of Root To Leaf Binary NumbersEasy
1028Recover a Tree From Preorder TraversalHard
1038Binary Search Tree to Greater Sum TreeMedium
1039Minimum Score Triangulation of PolygonMedium
1052Grumpy Bookstore OwnerMedium
1061Lexicographically Smallest Equivalent StringMedium
1072Flip Columns For Maximum Number of Equal RowsMedium
1079Letter Tile PossibilitiesMedium
1080Insufficient Nodes in Root to Leaf PathsMedium
1081Smallest Subsequence of Distinct CharactersMedium
1092Shortest Common SupersequenceHard
1105Filling Bookcase ShelvesMedium
1106Parsing A Boolean ExpressionHard
1110Delete Nodes And Return ForestMedium
1123Lowest Common Ancestor of Deepest LeavesMedium
1128Number of Equivalent Domino PairsEasy
1140Stone Game IIMedium
1161Maximum Level Sum of a Binary TreeMedium
1190Reverse Substrings Between Each Pair of ParenthesesMedium
1200Minimum Absolute DifferenceEasy
1233Remove Sub-Folders from the FilesystemMedium
1248Count Number of Nice SubarraysMedium
1261Find Elements in a Contaminated Binary TreeMedium
1262Greatest Sum Divisible by ThreeMedium
1266Minimum Time Visiting All PointsEasy
1267Count Servers that CommunicateMedium
1277Count Square Submatrices with All OnesMedium
1287Element Appearing More Than 25% In Sorted ArrayEasy
1290Convert Binary Number in a Linked List to IntegerEasy
1295Find Numbers with Even Number of DigitsEasy
1298Maximum Candies You Can Get from BoxesUnknown
1304Find N Unique Integers Sum up to ZeroUnknown
1305All Elements in Two Binary Search TreesUnknown
1310XOR Queries of a SubarrayMedium
1317Convert Integer to the Sum of Two No-Zero IntegersUnknown
1319Number of Operations to Make Network ConnectedMedium
1323Maximum 69 NumberEasy
1331Rank Transform of an ArrayUnknown
1334Find the City With the Smallest Number of Neighbors at a Threshold DistanceMedium
1339Maximum Product of Splitted Binary TreeMedium
1346Check If N and Its Double ExistUnknown
1352Product of the Last K NumbersMedium
1353Maximum Number of Events That Can Be AttendedMedium
1358Number of Substrings Containing All Three CharactersMedium
1367Linked List in Binary TreeMedium
1368Minimum Cost to Make at Least One Valid Path in a GridHard
1371Find the Longest Substring Containing Vowels in Even CountsMedium
1380Lucky Numbers in a MatrixEasy
1381Design a Stack With Increment OperationUnknown
1382Balance a Binary Search TreeMedium
1390Four DivisorsUnknown
1392Longest Happy PrefixUnknown
1394Find Lucky Integer in an ArrayUnknown
1395Count Number of TeamsUnknown
1399Count Largest GroupUnknown
1400Construct K Palindrome StringsUnknown
1405Longest Happy StringUnknown
1408String Matching in an ArrayUnknown
1410HTML Entity ParserUnknown
1411Number of Ways to Paint N × 3 GridUnknown
1415The k-th Lexicographical String of All Happy Strings of Length nUnknown
1422Maximum Score After Splitting a StringUnknown
1432Max Difference You Can Get From Changing an IntegerUnknown
1437Check If All 1's Are at Least Length K Places AwayMedium
1450Number of Students Doing Homework at a Given TimeEasy
1455Check If a Word Occurs As a Prefix of Any Word in a SentenceUnknown
1458Max Dot Product of Two SubsequencesMedium
1460Make Two Arrays Equal by Reversing SubarraysUnknown
1461Check If a String Contains All Binary Codes of Size KMedium
1462Course Schedule IVMedium
1465Maximum Area of a Piece of Cake After Horizontal and Vertical CutsUnknown
1475Final Prices With a Special Discount in a ShopEasy
1482Minimum Number of Days to Make m BouquetsMedium
1486XOR Operation in an ArrayEasy
1487Making File Names UniqueUnknown
1488Avoid Flood in The CityUnknown
1493Longest Subarray of 1's After Deleting One ElementMedium
1497Check If Array Pairs Are Divisible by kMedium
1498Number of Subsequences That Satisfy the Given Sum ConditionMedium
1503Last Moment Before All Ants Fall Out of a PlankUnknown
1504Count Submatrices With All OnesUnknown
1508Range Sum of Sorted Subarray SumsMedium
1509Minimum Difference Between Largest and Smallest Value in Three MovesMedium
1513Number of Substrings With Only 1sUnknown
1514Path with Maximum ProbabilityMedium
1518Water BottlesUnknown
1523Count Odd Numbers in an Interval RangeEasy
1524Number of Sub-arrays With Odd SumMedium
1526Minimum Number of Increments on Subarrays to Form a Target ArrayUnknown
1529Minimum Suffix FlipsUnknown
1530Number of Good Leaf Nodes PairsMedium
1534Count Good TripletsEasy
1536Minimum Swaps to Arrange a Binary GridUnknown
1545Find Kth Bit in Nth Binary StringEasy
1550Three Consecutive OddsUnknown
1552Magnetic Force Between Two BallsMedium
1568Minimum Number of Days to Disconnect IslandUnknown
1573Number of Ways to Split a StringUnknown
1574Shortest Subarray to be Removed to Make Array SortedUnknown
1578Minimum Time to Make Rope ColorfulMedium
1579Remove Max Number of Edges to Keep Graph Fully TraversableUnknown
1582Special Positions in a Binary MatrixUnknown
1590Make Sum Divisible by PMedium
1593Split a String Into the Max Number of Unique SubstringsMedium
1598Crawler Log FolderEasy
1605Find Valid Matrix Given Row and Column SumsUnknown
1611Minimum One Bit Operations to Make Integers ZeroUnknown
1621Number of Sets of K Non-Overlapping Line SegmentsUnknown
1622Fancy SequenceUnknown
1625Lexicographically Smallest String After Applying OperationsUnknown
1636Sort Array by Increasing FrequencyUnknown
1639Number of Ways to Form a Target String Given a DictionaryHard
1652Defuse the BombUnknown
1653Minimum Deletions to Make String BalancedMedium
1671Minimum Number of Removals to Make Mountain ArrayHard
1678Goal Parser InterpretationUnknown
1680Concatenation of Consecutive Binary NumbersUnknown
1684Count the Number of Consistent StringsEasy
1689Partitioning Into Minimum Number Of Deci-Binary NumbersMedium
1695Maximum Erasure ValueMedium
1700Number of Students Unable to Eat LunchEasy
1701Average Waiting TimeMedium
1716Calculate Money in Leetcode BankEasy
1717Maximum Score From Removing SubstringsUnknown
1718Construct the Lexicographically Largest Valid SequenceUnknown
1726Tuple with Same ProductMedium
1727Largest Submatrix With RearrangementsUnknown
1733Minimum Number of People to TeachUnknown
1749Maximum Absolute Sum of Any SubarrayMedium
1751Maximum Number of Events That Can Be Attended IIUnknown
1752Check if Array Is Sorted and RotatedEasy
1758Minimum Changes To Make Alternating Binary StringUnknown
1760Minimum Limit of Balls in a BagMedium
1763Longest Nice SubstringEasy
1765Map of Highest PeakMedium
1766Tree of CoprimesUnknown
1768Merge Strings AlternatelyEasy
1769Minimum Number of Operations to Move All Balls to Each BoxMedium
1779Find Nearest Point That Has the Same X or Y CoordinateUnknown
1780Check if Number is a Sum of Powers of ThreeUnknown
1784Check if Binary String Has at Most One Segment of OnesUnknown
1790Check if One String Swap Can Make Strings EqualEasy
1791Find Center of Star GraphEasy
1792Maximum Average Pass RatioMedium
1799Maximize Score After N OperationsUnknown
1800Maximum Ascending Subarray SumUnknown
1802Maximum Value at a Given Index in a Bounded ArrayHard
1813Sentence Similarity IIIUnknown
1823Find the Winner of the Circular GameMedium
1829Maximum XOR for Each QueryUnknown
1844Replace All Digits with CharactersEasy
1857Largest Color Value in a Directed GraphHard
1859Sorting the SentenceUnknown
1861Rotating the BoxEasy
1862Sum of Floored PairsUnknown
1863Sum of All Subset XOR TotalsUnknown
1865Finding Pairs With a Certain SumUnknown
1877Minimize Maximum Pair Sum in ArrayEasy
1878Get Biggest Three Rhombus Sums in a GridUnknown
1886Determine Whether Matrix Can Be Obtained By RotationUnknown
1888Minimum Number of Flips to Make the Binary String AlternatingUnknown
1894Find the Student that Will Replace the ChalkUnknown
1895Largest Magic SquareUnknown
1900The Earliest and Latest Rounds Where Players CompeteUnknown
1905Count Sub IslandsUnknown
1910Remove All Occurrences of a SubstringUnknown
1911Maximum Alternating Subsequence SumUnknown
1912Design Movie Rental SystemUnknown
1920Build Array from PermutationEasy
1922Count Good NumbersUnknown
1925Count Square Sum TriplesUnknown
1930Unique Length-3 Palindromic SubsequencesMedium
1931Painting a Grid With Three Different ColorsUnknown
1935Maximum Number of Words You Can TypeUnknown
1937Maximum Number of Points with CostUnknown
1938Maximum Genetic Difference QueryUnknown
1942The Number of the Smallest Unoccupied ChairUnknown
1945Sum of Digits of String After ConvertUnknown
1948Delete Duplicate Folders in SystemUnknown
1957Delete Characters to Make Fancy StringUnknown
1963Minimum Number of Swaps to Make the String BalancedUnknown
1967Number of Strings That Appear as Substrings in WordUnknown
1970Last Day Where You Can Still CrossUnknown
1971Find if Path Exists in GraphEasy
1975Maximum Matrix SumUnknown
1976Number of Ways to Arrive at DestinationMedium
1980Find Unique Binary StringMedium
1994The Number of Good SubsetsUnknown
1995Count Special QuadrupletsUnknown
2007Find Original Array From Doubled ArrayUnknown
2008Maximum Earnings From TaxiUnknown
2009Minimum Number of Operations to Make Array ContinuousUnknown
2011Final Value of Variable After Performing OperationsUnknown
2014Longest Subsequence Repeated k TimesUnknown
2016Maximum Difference Between Increasing ElementsEasy
2017Grid GameUnknown
2022Convert 1D Array Into 2D ArrayMedium
2028Find Missing ObservationsUnknown
2033Minimum Operations to Make a Uni-Value GridUnknown
2043Simple Bank SystemUnknown
2044Count Number of Maximum Bitwise-OR SubsetsMedium
2045Second Minimum Time to Reach DestinationUnknown
2048Next Greater Numerically Balanced NumberMedium
2053Kth Distinct String in an ArrayUnknown
2054Two Best Non-Overlapping EventsUnknown
2058Find the Minimum and Maximum Number of Nodes Between Critical PointsUnknown
2064Minimized Maximum of Products Distributed to Any StoreUnknown
2070Most Beautiful Item for Each QueryMedium
2090K Radius Subarray AveragesMedium
2091Removing Minimum and Maximum From ArrayMedium
2092Find All People With SecretUnknown
2094Finding 3-Digit Even NumbersUnknown
2096Step-By-Step Directions From a Binary Tree Node to AnotherMedium
2097Valid Arrangement of PairsUnknown
2099Find Subsequence of Length K With the Largest SumEasy
2106Maximum Fruits Harvested After at Most K StepsUnknown
2109Adding Spaces to a StringEasy
2110Number of Smooth Descent Periods of a StockMedium
2115Find All Possible Recipes from Given SuppliesUnknown
2116Check if a Parentheses String Can Be ValidMedium
2125Number of Laser Beams in a BankMedium
2127Maximum Employees to Be Invited to a MeetingUnknown
2131Longest Palindrome by Concatenating Two Letter WordsMedium
2134Minimum Swaps to Group All 1's Together IIMedium
2138Divide a String Into Groups of Size kUnknown
2140Solving Questions With BrainpowerMedium
2141Maximum Running Time of N ComputersUnknown
2145Count the Hidden SequencesUnknown
2147Number of Ways to Divide a Long CorridorUnknown
2154Keep Multiplying Found Values by TwoEasy
2161Partition Array According to Given PivotMedium
2163Minimum Difference in Sums After Removal of ElementsUnknown
2169Count Operations to Obtain ZeroUnknown
2176Count Equal and Divisible Pairs in an ArrayUnknown
2179Count Good Triplets in an ArrayUnknown
2181Merge Nodes in Between ZerosMedium
2182Construct String With Repeat LimitMedium
2185Counting Words With a Given PrefixEasy
2191Sort the Jumbled NumbersUnknown
2192All Ancestors of a Node in a Directed Acyclic GraphMedium
2196Create Binary Tree From DescriptionsMedium
2197Replace Non-Coprime Numbers in ArrayUnknown
2200Find All K-Distant Indices in an ArrayEasy
2206Divide Array Into Equal PairsEasy
2210Count Hills and Valleys in an ArrayUnknown
2211Count Collisions on a RoadUnknown
2220Minimum Bit Flips to Convert NumberEasy
2221Find Triangular Sum of an ArrayMedium
2225Find Players With Zero or One LossesMedium
2226Maximum Candies Allocated to K ChildrenMedium
2236Root Equals Sum of ChildrenEasy
2257Count Unguarded Cells in the GridUnknown
2264Largest 3-Same-Digit Number in StringEasy
2270Number of Ways to Split ArrayMedium
2271Maximum White Tiles Covered by a CarpetUnknown
2273Find Resultant Array After Removing AnagramsUnknown
2275Largest Combination With Bitwise AND Greater Than ZeroMedium
2285Maximum Total Importance of RoadsHard
2290Minimum Obstacle Removal to Reach CornerHard
2294Partition Array Such That Maximum Difference Is KHard
2300Successful Pairs of Spells and PotionsMedium
2302Count Subarrays With Score Less Than KHard
2311Longest Binary Subsequence Less Than or Equal to KMedium
2322Minimum Score After Removals on a TreeUnknown
2326Spiral Matrix IVHard
2327Number of People Aware of a SecretUnknown
2331Evaluate Boolean Binary TreeEasy
2337Move Pieces to Obtain a StringMedium
2338Count the Number of Ideal ArraysMedium
2342Max Sum of a Pair With Equal Sum of DigitsMedium
2344Minimum Deletions to Make Array DivisibleHard
2348Number of Zero-Filled SubarraysMedium
2349Design a Number Container SystemMedium
2353Design a Food Rating SystemMedium
2359Find Closest Node to Given Two NodesUnknown
2364Count Number of Bad PairsHard
2369Check if There is a Valid Partition For The ArrayMedium
2370Longest Ideal SubsequenceMedium
2375Construct Smallest Number From DI StringMedium
2379Minimum Recolors to Get K Consecutive Black BlocksEasy
2381Shifting Letters IIMedium
2389Longest Subsequence With Limited SumEasy
2392Build a Matrix With ConditionsHard
2400Number of Ways to Reach a Position After Exactly k StepsMedium
2401Longest Nice SubarrayMedium
2402Meeting Rooms IIIHard
2406Divide Intervals Into Minimum Number of GroupsMedium
2409Count Days Spent TogetherEasy
2410Maximum Matching of Players With TrainersMedium
2411Smallest Subarrays With Maximum Bitwise ORMedium
2415Reverse Odd Levels of Binary TreeMedium
2416Sum of Prefix Scores of StringsHard
2418Sort the PeopleEasy
2419Longest Subarray With Maximum Bitwise ANDMedium
2425Bitwise XOR of All PairingsMedium
2429Minimize XORHard
2434Using a Robot to Print the Lexicographically Smallest StringMedium
2435Paths in Matrix Whose Sum Is Divisible by KHard
2438Range Product Queries of PowersUnknown
2440Create Components With Same ValueMedium
2444Count Subarrays With Fixed BoundsHard
2458Height of Binary Tree After Subtree Removal QueriesUnknown
2460Apply Operations to an ArrayEasy
2461Maximum Sum of Distinct Subarrays With Length KMedium
2463Minimum Total Distance TraveledHard
2466Count Ways To Build Good StringsMedium
2467Most Profitable Path in a TreeMedium
2490Circular SentenceEasy
2491Divide Players Into Teams of Equal SkillMedium
2493Divide Nodes Into the Maximum Number of GroupsHard
2501Longest Square Streak in an ArrayMedium
2503Maximum Number of Points From Grid QueriesHard
2508Add Edges to Make Degrees of All Nodes EvenHard
2509Cycle Length Queries in a TreeMedium
2516Take K of Each Character From Left and RightMedium
2523Closest Prime Numbers in RangeMedium
2528Maximize the Minimum Powered CityHard
2529Maximum Count of Positive Integer and Negative IntegerEasy
2530Maximal Score After Applying K OperationsMedium
2536Increment Submatrices by OneMedium
2537Count the Number of Good SubarraysMedium
2551Put Marbles in BagsHard
2553Separate the Digits in an ArrayMedium
2554Maximum Number of Integers to Choose From a Range IMedium
2558Take Gifts From the Richest PileEasy
2559Count Vowel Strings in RangesMedium
2560House Robber IVMedium
2561Rearranging FruitsHard
2563Count the Number of Fair PairsMedium
2566Maximum Difference by Remapping a DigitEasy
2570Merge Two 2D Arrays by Summing ValuesMedium
2572Count the Number of Square-Free SubsetsUnknown
2577Minimum Time to Visit a Cell In a GridHard
2579Count Total Number of Colored CellsMedium
2582Pass the PillowUnknown
2583Kth Largest Sum in a Binary TreeMedium
2593Find Score of an Array After Marking All ElementsMedium
2594Minimum Time to Repair CarsUnknown
2598Smallest Missing Non-negative Integer After OperationsUnknown
2601Prime Subtraction OperationHard
2609Find the Longest Balanced Substring of a Binary StringEasy
2616Minimize the Maximum Difference of PairsHard
2639Find the Width of Columns of a GridUnknown
2640Find the Score of All Prefixes of an ArrayMedium
2641Cousins in Binary Tree IIMedium
2645Minimum Additions to Make Valid StringMedium
2654Minimum Number of Operations to Make All Array Elements Equal to 1Unknown
2657Find the Prefix Common Array of Two ArraysMedium
2658Maximum Number of Fish in a GridMedium
2661First Completely Painted Row or ColumnMedium
2678Number of Senior CitizensEasy
2683Neighboring Bitwise XORMedium
2684Maximum Number of Moves in a GridMedium
2685Count the Number of Complete ComponentsMedium
2696Minimum String Length After Removing SubstringsEasy
2698Find the Punishment Number of an IntegerUnknown
2699Modify Graph Edge WeightsUnknown
2707Extra Characters in a StringMedium
2718Sum of Matrix After QueriesUnknown
2749Minimum Operations to Make the Integer ZeroUnknown
2751Robot CollisionsUnknown
2762Continuous SubarraysMedium
2765Longest Alternating SubarrayEasy
2779Maximum Beauty of an Array After Applying OperationUnknown
2780Minimum Index of a Valid SplitMedium
2785Sort Vowels in a StringMedium
2787Ways to Express an Integer as Sum of PowersUnknown
2799Count Complete Subarrays in an ArrayMedium
2807Insert Greatest Common Divisors in Linked ListMedium
2818Apply Operations to Maximize ScoreUnknown
2825Make String a Subsequence Using Cyclic IncrementsMedium
2843Count Symmetric IntegersMedium
2845Count of Interesting SubarraysMedium
2872Maximum Number of K-Divisible ComponentsUnknown
2873Maximum Value of an Ordered Triplet IEasy
2874Maximum Value of an Ordered Triplet IIMedium
2894Divisible and Non-divisible Sums DifferenceEasy
2900Longest Unequal Adjacent Groups Subsequence IEasy
2901Longest Unequal Adjacent Groups Subsequence IIUnknown
2906Construct Product MatrixEasy
2909Minimum Sum of Mountain Triplets IIMedium
2914Minimum Number of Changes to Make Binary String BeautifulEasy
2916Subarrays Distinct Element Sum of Squares IIUnknown
2924Find Champion IIMedium
2929Distribute Candies Among Children IIMedium
2930Number of Strings Which Can Be Rearranged to Contain SubstringMedium
2938Separate Black and White BallsMedium
2940Find Building Where Alice and Bob Can MeetUnknown
2942Find Words Containing CharacterEasy
2943Maximize Area of Square Hole in GridMedium
2948Make Lexicographically Smallest Array by Swapping ElementsUnknown
2962Count Subarrays Where Max Element Appears at Least K TimesMedium
2965Find Missing and Repeated ValuesUnknown
2966Divide Array Into Arrays With Max DifferenceMedium
2975Maximum Square Area by Removing Fences From a FieldUnknown
2976Minimum Cost to Convert String IMedium
2977Minimum Cost to Convert String IIUnknown
2980Check if Bitwise OR Has Trailing ZerosEasy
2981Find Longest Special Substring That Occurs Thrice IMedium
2999Count the Number of Powerful IntegersUnknown
3000Maximum Area of Longest Diagonal RectangleMedium
3001Minimum Moves to Capture The QueenUnknown
3003Maximize the Number of Partitions After OperationsUnknown
3005Count Elements With Maximum FrequencyEasy
3010Divide an Array Into Subarrays With Minimum Cost IEasy
3011Find if Array Can Be SortedUnknown
3013Divide an Array Into Subarrays With Minimum Cost IIUnknown
3016Minimum Number of Pushes to Type Word IIMedium
3021Alice and Bob Playing Flower GameUnknown
3024Type of TriangleEasy
3025Find the Number of Ways to Place People IUnknown
3027Find the Number of Ways to Place People IIUnknown
3042Count Prefix and Suffix Pairs IEasy
3043Find the Length of the Longest Common PrefixEasy
3047Find the Largest Area of Square Inside Two RectanglesEasy
3066Minimum Operations to Exceed Threshold Value IIMedium
3068Find the Maximum Sum of Node ValuesHard
3070Count Submatrices with Top-Left Element and Sum Less Than kEasy
3074Apple Redistribution into BoxesUnknown
3085Minimum Deletions to Make String K-SpecialEasy
3097Shortest Subarray With OR at Least K IIMedium
3100Water Bottles IIEasy
3105Longest Strictly Increasing or Strictly Decreasing SubarrayEasy
3108Minimum Cost Walk in Weighted GraphUnknown
3116Kth Smallest Amount With Single Denomination CombinationMedium
3122Minimum Number of Operations to Satisfy ConditionsUnknown
3129Find All Possible Stable Binary Arrays IUnknown
3130Find All Possible Stable Binary Arrays IIUnknown
3133Minimum Array EndMedium
3136Valid WordEasy
3147Taking Maximum Energy From the Mystic DungeonUnknown
3149Find the Minimum Cost Array PermutationMedium
3151Special Array IUnknown
3152Special Array IIMedium
3160Find the Number of Distinct Colors Among the BallsMedium
3163String Compression IIIUnknown
3169Count Days Without MeetingsMedium
3170Lexicographically Minimum String After Removing StarsUnknown
3174Clear DigitsEasy
3186Maximum Total Damage With Spell CastingMedium
3190Find Minimum Operations to Make All Elements Divisible by ThreeEasy
3191Minimum Operations to Make Binary Array Elements Equal to One IMedium
3192Minimum Operations to Make Binary Array Elements Equal to One IIEasy
3195Find the Minimum Area to Cover All Ones IUnknown
3197Find the Minimum Area to Cover All Ones IIUnknown
3201Find the Maximum Length of Valid Subsequence IEasy
3202Find the Maximum Length of Valid Subsequence IIUnknown
3203Find Minimum Diameter After Merging Two TreesMedium
3208Alternating Groups IIUnknown
3212Count Submatrices With Equal Frequency of X and YUnknown
3217Delete Nodes From Linked List Present in ArrayMedium
3223Minimum Length of String After OperationsUnknown
3227Vowels Game in a StringUnknown
3228Maximum Number of Operations to Move Ones to the EndUnknown
3234Count the Number of Substrings With Dominant OnesEasy
3243Shortest Distance After Road Addition Queries IUnknown
3254Find the Power of K-Size Subarrays IMedium
3264Final Array State After K Multiplication Operations IEasy
3272Find the Count of Good IntegersUnknown
3289The Two Sneaky Numbers of DigitvilleMedium
3296Minimum Number of Seconds to Make Mountain Height ZeroMedium
3304Find the K-th Character in String Game IUnknown
3306Count of Substrings Containing Every Vowel and K Consonants IIMedium
3307Find the K-th Character in String Game IIUnknown
3310Remove Methods From ProjectUnknown
3315Construct the Minimum Bitwise Array IIUnknown
3318Find X-Sum of All K-Long Subarrays IEasy
3321Find X-Sum of All K-Long Subarrays IIUnknown
3330Find the Original Typed String IEasy
3335Total Characters in String After Transformations IMedium
3337Total Characters in String After Transformations IIUnknown
3343Count Number of Balanced PermutationsUnknown
3346Maximum Frequency of an Element After Performing Operations IMedium
3347Maximum Frequency of an Element After Performing Operations IIUnknown
3349Adjacent Increasing Subarrays Detection IUnknown
3350Adjacent Increasing Subarrays Detection IIMedium
3354Make Array Elements Equal to ZeroUnknown
3355Zero Array Transformation IUnknown
3356Zero Array Transformation IIUnknown
3363Find the Maximum Number of Fruits CollectedUnknown
3370Smallest Number With All Set BitsEasy
3372Maximize the Number of Target Nodes After Connecting Trees IMedium
3373Maximize the Number of Target Nodes After Connecting Trees IIUnknown
3375Minimum Operations to Make Array Values Equal to KMedium
3379Transformed ArrayMedium
3381Maximum Subarray Sum With Length Divisible by KMedium
3392Count Subarrays of Length Three With a ConditionMedium
3394Check if Grid can be Cut into SectionsUnknown
3396Minimum Number of Operations to Make Elements in Array DistinctMedium
3397Maximum Number of Distinct Elements After OperationsUnknown
3403Find the Lexicographically Largest String From the Box IUnknown
3405Count the Number of Arrays with K Matching Adjacent ElementsUnknown
3408Design Task ManagerUnknown
3423Maximum Difference Between Adjacent Elements in a Circular ArrayUnknown
3432Count Partitions with Even Sum DifferenceEasy
3433Count Mentions Per UserMedium
3439Reschedule Meetings for Maximum Free Time IEasy
3440Reschedule Meetings for Maximum Free Time IIUnknown
3442Maximum Difference Between Even and Odd Frequency IMedium
3443Maximum Manhattan Distance After K ChangesUnknown
3445Maximum Difference Between Even and Odd Frequency IIMedium
3446Sort Matrix by DiagonalsMedium
3453Separate Squares IUnknown
3454Separate Squares IIUnknown
3459Length of Longest V-Shaped Diagonal SegmentEasy
3461Check If Digits Are Equal in String After Operations IEasy
3477Fruits Into Baskets IIMedium
3480Maximize Subarrays After Removing One Conflicting PairEasy
3484Design SpreadsheetMedium
3487Maximum Unique Subarray Sum After DeletionMedium
3494Find the Minimum Amount of Time to Brew PotionsUnknown
3495Minimum Operations to Make Array Elements ZeroEasy
3507Minimum Pair Removal to Sort Array IUnknown
3508Implement RouterUnknown
3510Minimum Pair Removal to Sort Array IIUnknown
3512Minimum Operations to Make Array Sum Divisible by KUnknown
3516Find Closest PersonUnknown
3531Count Covered Buildings+Unknown
3539Find Sum of Array Product of Magical SequencesUnknown
3541Find Most Frequent Vowel and ConsonantUnknown
3542Minimum Operations to Convert All Elements to ZeroUnknown
3562Maximum Profit from Trading Stocks with DiscountsUnknown
3567Minimum Absolute Difference in Sliding SubmatrixUnknown
3573Best Time to Buy and Sell Stock VUnknown
3577Count the Number of Computer Unlocking PermutationsUnknown
3578Count Partitions With Max-Min Difference at Most KUnknown
3583Count Special TripletsUnknown
3600Maximize Spanning Tree Stability with UpgradesUnknown
3606Coupon Code ValidatorUnknown
3607Power Grid MaintenanceUnknown
3623Count Number of Trapezoids IUnknown
3625Count Number of Trapezoids IIUnknown
3634Minimum Removals to Balance ArrayUnknown
3637Trionic Array IUnknown
3640Trionic Array IIUnknown
3643Flip Square Submatrix VerticallyUnknown
3651Minimum Cost Path with TeleportationsUnknown
3652Best Time to Buy and Sell Stock using StrategyUnknown
3713Longest Balanced Substring IUnknown
3714Longest Balanced Substring IIUnknown
3719Longest Balanced Subarray IUnknown
3721Longest Balanced Subarray IIUnknown