Ctrl K

Coding problems

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

City Block OutlineBinary Indexed Tree · Segment Tree · ArrayHardSmaller Values to the RightBinary Indexed Tree · Segment Tree · ArrayHardWindow Sums Within a BandBinary Indexed Tree · Segment Tree · ArrayHardRebuild the Line from Height RecordsBinary Indexed Tree · Segment Tree · ArrayMediumPairs With a Steep DropBinary Indexed Tree · Segment Tree · ArrayHardCounting the Longest Rising SelectionsBinary Indexed Tree · Segment Tree · ArrayMediumA Dark Gap Between Street LampsBinary Indexed Tree · Segment Tree · QueueHardSteady Climb or Drop TriosBinary Indexed Tree · Segment Tree · ArrayMediumCard Pull PositionsBinary Indexed Tree · Array · SimulationMediumSmallest Code by Neighbor SwapsGreedy · Binary Indexed Tree · Segment TreeHardCost of Filling a Sorted ShelfBinary Indexed Tree · Segment Tree · ArrayHardLongest Stone Route at Each StopBinary Indexed Tree · Array · Binary SearchHardOnes Outnumber ZerosBinary Indexed Tree · Segment Tree · ArrayMediumTriples Both Rankings Agree OnBinary Indexed Tree · Segment Tree · ArrayHardPalindrome by Adjacent SwapsGreedy · Binary Indexed Tree · Two PointersHardCorner Boxes Over PinsBinary Indexed Tree · Array · Hash TableMediumRising Chain With Small StepsBinary Indexed Tree · Segment Tree · QueueHardPairs Within a Shifted GapBinary Indexed Tree · Segment Tree · ArrayHardTowers Above Both NeighbourhoodsBinary Indexed Tree · Segment Tree · ArrayHardQuadruples With a Swap in the MiddleBinary Indexed Tree · Array · Dynamic ProgrammingHardDeal Out From the Lowest CardGreedy · Binary Indexed Tree · Segment TreeHardBest Pair Above the BarsStack · Binary Indexed Tree · Segment TreeHardRising-Price TrioBinary Indexed Tree · Segment Tree · ArrayMediumSquared Variety TotalBinary Indexed Tree · Segment Tree · ArrayHardRising-Price TrioBinary Indexed Tree · Segment Tree · ArrayHardSteep Subsequence With the Largest SumBinary Indexed Tree · Segment Tree · ArrayHardFirst Common RooftopStack · Binary Indexed Tree · Segment TreeHardA Level Line Through the ChartBinary Indexed Tree · Geometry · ArrayHardTwo Piles by Larger CountBinary Indexed Tree · Segment Tree · ArrayHardRank of an ArrangementBinary Indexed Tree · Segment Tree · ArrayMediumParking Between PostsBinary Indexed Tree · Segment Tree · ArrayHardPeaks Under UpdatesBinary Indexed Tree · Segment Tree · ArrayHardEmpty Rectangle From Marked PointsBinary Indexed Tree · Segment Tree · GeometryMediumClean Rectangle on PinsBinary Indexed Tree · Segment Tree · GeometryHard