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 · QueueHardStacks of Dropped CratesSegment Tree · Array · Ordered SetHardArea Covered by Overlapping RectanglesSegment Tree · Array · Ordered SetHardSteady Climb or Drop TriosBinary Indexed Tree · Segment Tree · ArrayMediumSmallest Code by Neighbor SwapsGreedy · Binary Indexed Tree · Segment TreeHardAND of a Stretch Near the GoalBit Manipulation · Segment Tree · ArrayHardCost of Filling a Sorted ShelfBinary Indexed Tree · Segment Tree · ArrayHardFerry Runs From the DepotSegment Tree · Queue · ArrayHardOnes Outnumber ZerosBinary Indexed Tree · Segment Tree · ArrayMediumFresh Paint Per DaySegment Tree · Array · Ordered SetHardTriples Both Rankings Agree OnBinary Indexed Tree · Segment Tree · ArrayHardLongest Run After Each EditSegment Tree · Array · StringHardRising 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 · ArrayHardSwitches and PayoutsSegment Tree · ArrayHardDeal 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 TreeHardTwo Piles by Larger CountBinary Indexed Tree · Segment Tree · ArrayHardRank of an ArrangementBinary Indexed Tree · Segment Tree · ArrayMediumAND Pieces With Cheap TailsBit Manipulation · Segment Tree · QueueHardParking Between PostsBinary Indexed Tree · Segment Tree · ArrayHardSpaced Picks After EditsSegment Tree · Array · Divide and ConquerHardWindow OR Closest to a TargetBit Manipulation · Segment Tree · ArrayHardPeaks Under UpdatesBinary Indexed Tree · Segment Tree · ArrayHardStretches With an Exact ANDBit Manipulation · Segment Tree · ArrayHardTarget From Word BeginningsTrie · Segment Tree · ArrayMediumPhrase From Word Beginnings, Long EditionSegment Tree · Array · StringHardEmpty Rectangle From Marked PointsBinary Indexed Tree · Segment Tree · GeometryMediumClean Rectangle on PinsBinary Indexed Tree · Segment Tree · GeometryHardBest Sum After Banning a ValueSegment Tree · Array · Dynamic ProgrammingHardWindows You Can Raise Into OrderStack · Segment Tree · QueueHardHalve the Covered AreaSegment Tree · Array · Binary SearchHardParcels Into LockersSegment Tree · Array · Binary SearchEasyLeftmost Locker That FitsSegment Tree · Array · Binary SearchMediumDrop One Feud PairSegment Tree · Array · EnumerationHard