Ctrl K

Coding problems

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

Counting Grid RoutesMath · Dynamic Programming · CombinatoricsMediumTasters and the Spoiled CaskMath · Dynamic Programming · CombinatoricsHardNobody Gets Their Own GiftMath · Dynamic Programming · CombinatoricsMediumRadio Show Without Quick RepeatsMath · Dynamic Programming · CombinatoricsHardN-th Number Divisible by One of ThreeMath · Binary Search · CombinatoricsMediumParcel Run OrdersMath · Dynamic Programming · CombinatoricsHardA Fair Split of Colored BeadsArray · Math · Dynamic ProgrammingHardOther Orders for the Same Search TreeTree · Union Find · Binary Search TreeHardSegments on a Dotted LineMath · Dynamic Programming · CombinatoricsMediumSorted Vowel WordsMath · Dynamic Programming · CombinatoricsMediumK-th Route in Alphabetical OrderArray · Math · Dynamic ProgrammingHardXOR of Every SubsetBit Manipulation · Array · MathEasyTowers Seen From the LeftMath · Dynamic Programming · CombinatoricsHardRoom Building OrdersTree · Graph · Topological SortHardVowels Across All PiecesMath · String · Dynamic ProgrammingMediumTop of the Digit PyramidArray · Math · CombinatoricsMediumDivisor ChainsMath · Dynamic Programming · CombinatoricsHardWalks of Exactly k StepsMath · Dynamic Programming · CombinatoricsMediumPicks Without a Fixed GapArray · Hash Table · MathMediumSets Without a Fixed GapArray · Math · Dynamic ProgrammingMediumHeaviest Picks of Distinct LettersGreedy · Hash Table · MathHardRook Routes in Exact MovesMath · Dynamic Programming · CombinatoricsHardApples in Three BasketsMath · CombinatoricsHardThree-Way Split With a CapMath · Combinatorics · EnumerationEasyThree-Way Split With a CapMath · Combinatorics · EnumerationMediumStrings That Rearrange Into treeMath · Dynamic Programming · CombinatoricsMediumK-th Postage With One Stamp TypeBit Manipulation · Array · MathHardCorners Made of OnesArray · Hash Table · MathMediumGrasshopper on an Endless StaircaseBit Manipulation · Memoization · MathHardRunning Sum WavesArray · Math · CombinatoricsMediumSubsets With an Odd TotalArray · Math · Dynamic ProgrammingMediumSplit Into a Climb and a DescentArray · Math · Dynamic ProgrammingHardSplit Into a Climb and a Descent: Large ValuesArray · Math · Dynamic ProgrammingHardShuffle into a Divisible PalindromeHash Table · Math · CombinatoricsHardPair GCDs by Sorted PositionArray · Hash Table · MathHardFestival Stages and ScoresMath · Dynamic Programming · CombinatoricsHardBalanced Digit ShufflesMath · String · Dynamic ProgrammingHardCollapsing by Counting OnesMath · String · Dynamic ProgrammingHardThe Middle as the Sole FavoriteArray · Hash Table · MathHardGarland With Matching NeighboursMath · CombinatoricsHardThe Middle as the Sole Favorite (Large Input)Array · Hash Table · MathHardToken Spread Over All LayoutsMath · CombinatoricsHardExtremes of Small GroupsArray · Math · Dynamic ProgrammingMediumTop of a Digit PyramidMath · String · CombinatoricsEasyFold Digits Down to a PairMath · String · CombinatoricsHardThe K-th Odd-Even ZigzagArray · Math · CombinatoricsHard