Ctrl K

Coding problems

Algorithm problems with tests in Python, JavaScript, Java, Go and C++, checked on our server.

Water Between WallsStack · Array · Two PointersHardBiggest Rectangle Under the SkylineStack · Array · Monotonic StackHardBiggest Solid Panel BlockStack · Array · Dynamic ProgrammingHardPreorder of a Search TreeStack · Tree · Binary Search TreeMediumEvery Letter OnceStack · Greedy · StringMediumLargest Number From Two RowsStack · Greedy · ArrayHardErase Digits for the Smallest NumberStack · Greedy · StringMediumLow, Peak, MiddleStack · Array · Binary SearchMediumNext Larger on the RightStack · Array · Hash TableEasyNext Larger Around the CircleStack · Array · Monotonic StackMediumFix the Middle of the LineStack · Greedy · ArrayMediumPeak-Split TreeStack · Tree · ArrayMediumWaiting for a Higher PriceStack · Array · Monotonic StackMediumSorting Batches With RepeatsStack · Greedy · ArrayHardMost Pieces Sorted SeparatelyStack · Greedy · ArrayMediumConvoys at the FinishStack · Array · SortingMediumSum of Segment MinimumsStack · Array · Dynamic ProgrammingMediumLongest Uphill StretchStack · Array · Two PointersMediumFrog on the PostsStack · Array · Dynamic ProgrammingHardSearch Tree From a Visit LogStack · Tree · Binary Search TreeMediumNext Larger Down the ListStack · Array · Linked ListMediumStretches Led by Their MinimumStack · Array · Monotonic StackHardOne Bead of Each ColorStack · Greedy · StringMediumHard Shifts Take the LeadStack · Array · Hash TableMediumTree of Leaf ProductsStack · Greedy · ArrayMediumDiscount From a Cheaper NeighborStack · Array · Monotonic StackEasyAll-Ones RectanglesStack · Array · Dynamic ProgrammingMediumRaising by RangesStack · Greedy · ArrayHardCut the Middle to Restore OrderStack · Array · Two PointersMediumSmallest Subsequence of a Given LengthStack · Greedy · ArrayMediumTowers With a Sea ViewStack · Array · Monotonic StackMediumWhen Rail Robots Catch UpStack · Array · MathHardWidest Fence Span Around the Marked BoardStack · Array · Two PointersHardWeakest Link Times TotalStack · Array · Prefix SumMediumWho Is Visible to the RightStack · Array · Monotonic StackHardBest Floor for Every WidthStack · Array · Monotonic StackMediumOutclassed HeroesStack · Greedy · ArrayMediumSmallest Pick With a Required LetterStack · Greedy · StringHardTotal Spread of All SegmentsStack · Array · Monotonic StackMediumWeakest-Link Crew PowerStack · Array · Prefix SumHardSightlines on the Parade GroundStack · Array · MatrixMediumNights of the Withering RowStack · Array · Linked ListMediumCheapest Hop RouteStack · Graph · ArrayMediumA Strong Enough StretchStack · Union Find · ArrayHardPeaks in Plain SightStack · Array · SortingMediumBooks in Rising OrderStack · Array · Dynamic ProgrammingHardSecond Larger to the RightStack · Array · Binary SearchHardLeaders of a ListStack · Recursion · Linked ListMediumLong Leaps Across a BoardStack · Breadth-First Search · Union FindHardBest Pair Above the BarsStack · Binary Indexed Tree · Segment TreeHard
1 of 2 · 62 problems