Ctrl K

Coding problems

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

Paving a Garden PathMemoization · Math · Dynamic ProgrammingEasySplit Into Dictionary WordsTrie · Memoization · ArrayMediumEvery Way to Space the WordsTrie · Memoization · ArrayHardEvery Bracketing ResultRecursion · Memoization · MathMediumLongest Uphill WalkDepth-First Search · Breadth-First Search · GraphHardSteps Down to OneGreedy · Bit Manipulation · MemoizationMediumShared Pool Race to a GoalBit Manipulation · Memoization · MathMediumClear the Marble RowStack · Breadth-First Search · MemoizationHardSum of the Two BeforeRecursion · Memoization · MathEasyClearing Colored CubesMemoization · Array · Dynamic ProgrammingHardCheapest Basket with BundlesBit Manipulation · Memoization · ArrayMediumGroups With Equal SumsBit Manipulation · Memoization · ArrayMediumSix-Cell Tile SliderBreadth-First Search · Memoization · ArrayHardThief and GuardGraph · Topological Sort · MemoizationHardFewest Signs to Reach a TargetMemoization · Math · Dynamic ProgrammingHardSum of the Last ThreeMemoization · Math · Dynamic ProgrammingEasyRanking by Hailstone StepsMemoization · Dynamic Programming · SortingMediumCutting a Berry CakeMemoization · Array · Dynamic ProgrammingHardA Shrinking Pile of OrangesMemoization · Dynamic ProgrammingHardOther Orders for the Same Search TreeTree · Union Find · Binary Search TreeHardTrips on One TankMemoization · Array · Dynamic ProgrammingHardGuarded Bit Flips Down to ZeroBit Manipulation · Memoization · Dynamic ProgrammingHardQuiet and Sociable TenantsBit Manipulation · Memoization · Dynamic ProgrammingHardMouse, Cat and CheeseGraph · Topological Sort · MemoizationHardFresh Trays for Every PartyBit Manipulation · Memoization · ArrayHardMost Repeated Colour on a PathGraph · Topological Sort · MemoizationHardWhen the Favourites MeetMemoization · Dynamic ProgrammingHardGrading the Arithmetic QuizStack · Memoization · ArrayHardBinary Number Under a CapGreedy · Memoization · StringMediumCutting a Board for ProfitMemoization · Array · Dynamic ProgrammingHardDie Rolls Without Close RepeatsMemoization · Dynamic ProgrammingHardUphill-Only WalksDepth-First Search · Breadth-First Search · GraphHardClimbing Along Rows and ColumnsMemoization · Array · Hash TableHardRide Until a RepeatGraph · Memoization · Dynamic ProgrammingHardHarvesting a Tree: Toll or HalfBit Manipulation · Tree · Depth-First SearchHardDivide by Five or ElevenBreadth-First Search · Memoization · Dynamic ProgrammingMediumRemovals With an Equal SumMemoization · Array · Dynamic ProgrammingMediumGrasshopper on an Endless StaircaseBit Manipulation · Memoization · MathHardTrail With One BendMemoization · Array · Dynamic ProgrammingHard