Ctrl K

Coding problems

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

Shortest Stretch to the GoalArray · Binary Search · Prefix SumMediumProduct of All the OthersArray · Prefix SumMediumStudios for Recording SessionsGreedy · Array · Two PointersMediumLongest Run with a Given SumArray · Hash Table · Prefix SumMediumRichest Plot Under the CapArray · Binary Search · MatrixHardBatch of Segment AdjustmentsArray · Prefix SumMediumThe Heaviest Reading DayGreedy · Array · Binary SearchHardA Stretch Divisible by kArray · Hash Table · MathMediumAs Many Heads as TailsArray · Hash Table · Prefix SumMediumFour Equal PiecesArray · Hash Table · Prefix SumHardStretches With an Exact TotalArray · Hash Table · Prefix SumMediumBest Average of a Long StretchArray · Binary Search · Prefix SumHardWindows With a Small ProductArray · Binary Search · Prefix SumMediumBalance Point IndexArray · Prefix SumEasyThe Shift That Scores the MostArray · Prefix SumHardSplit for the Best AveragesArray · Dynamic Programming · Prefix SumMediumRoll Letters by PrefixArray · String · Prefix SumMediumShortest Stretch Reaching a TotalQueue · Array · Binary SearchHardUp and Down OrderingsString · Dynamic Programming · Prefix SumHardWindows With an Exact Alarm CountArray · Hash Table · Prefix SumMediumWindows With a Divisible SumArray · Hash Table · Prefix SumMediumLight Every Lamp With a WindowBit Manipulation · Queue · ArrayHardMerge Neighbouring Piles in GroupsArray · Dynamic Programming · Prefix SumHardLongest Run of Ones With k FixesArray · Binary Search · Prefix SumMediumRectangles With a Given SumArray · Hash Table · MatrixHardShuttle Seat PlanArray · Prefix Sum · SortingMediumSeats per TripArray · Prefix SumMediumHard Shifts Take the LeadStack · Array · Hash TableMediumThe Growing Grab LimitArray · Math · Dynamic ProgrammingMediumPalindrome After a Few FixesBit Manipulation · Array · Hash TableMediumMatching Stretch Within BudgetString · Binary Search · Prefix SumMediumStretches With k Odd NumbersArray · Hash Table · MathMediumLargest Light SquareArray · Binary Search · MatrixMediumRange XOR LookupsBit Manipulation · Array · Prefix SumMediumNeighbourhood Sums in a GridArray · Matrix · Prefix SumMediumEven Vowel StretchBit Manipulation · Hash Table · StringMediumThe Battery Must Not Run DryArray · Prefix SumEasyArrays With K Record HighsDynamic Programming · Prefix SumHardZeros Left, Ones RightString · Prefix SumEasyTake Only From the EndsArray · Prefix Sum · Sliding WindowMediumSplit Into Equal-XOR HalvesBit Manipulation · Array · Hash TableMediumCutting a Berry CakeMemoization · Array · Dynamic ProgrammingHardBalance After Each DayArray · Prefix SumEasySegments With an Odd SumArray · Math · Dynamic ProgrammingMediumDisjoint Segments With a Target SumGreedy · Array · Hash TableMediumTotals of Odd-Length SlicesArray · Math · Prefix SumEasyArrange for the Busiest RangesGreedy · Array · Prefix SumMediumTrim to a Divisible SumArray · Hash Table · Prefix SumMediumTrim the Ends to a TargetArray · Hash Table · Binary SearchMediumRemovals That Balance Parity SumsArray · Prefix SumMedium
1 of 4 · 189 problems