Ctrl K

Coding problems

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

Moving Window MaximumQueue · Array · Sliding WindowHardFirst One-Off LetterQueue · Hash Table · StringEasyCouncil of Two ClansGreedy · Queue · StringMediumA Dark Gap Between Street LampsBinary Indexed Tree · Segment Tree · QueueHardShortest Stretch Reaching a TotalQueue · Array · Binary SearchHardBest Run on a RingQueue · Array · Divide and ConquerMediumA Deck That Reveals in OrderQueue · Array · SortingMediumLight Every Lamp With a WindowBit Manipulation · Queue · ArrayHardMaximum Sum With Short HopsQueue · Array · Dynamic ProgrammingHardLongest Tight-Range StretchQueue · Array · Ordered SetMediumBest Pair of Close BeaconsQueue · Array · Sliding WindowHardFerry Runs From the DepotSegment Tree · Queue · ArrayHardBest Score With Short JumpsQueue · Array · Dynamic ProgrammingMediumA Picky Line at the CounterStack · Queue · ArrayEasyLast One in the CircleRecursion · Queue · ArrayMediumLifters and Energy DrinksGreedy · Queue · ArrayHardWaiting in the Ticket LineQueue · Array · SimulationEasyWho Still Knows the RumorQueue · Dynamic Programming · SimulationMediumLongest Affordable Run of MachinesQueue · Array · Binary SearchHardRising Chain With Small StepsBinary Indexed Tree · Segment Tree · QueueHardStretches With an Exact Low and HighQueue · Array · Sliding WindowHardSignal in the Remotest VillageGreedy · Queue · ArrayHardTurnstile QueueQueue · Array · SimulationHardSteady Stretches of ReadingsQueue · Array · Ordered SetMediumMarket Fruit BonusQueue · Array · Dynamic ProgrammingMediumMost Blocks After MergingStack · Queue · ArrayHardStops With Free RidesQueue · Array · Dynamic ProgrammingHardAND Pieces With Cheap TailsBit Manipulation · Segment Tree · QueueHardThree-Lamp SwitchBit Manipulation · Queue · ArrayMediumWindows You Can Raise Into OrderStack · Segment Tree · QueueHard