Ctrl K

Coding problems

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

Primes Below a BoundArray · Math · EnumerationMediumFold the Digits Down to OneMath · Number Theory · SimulationEasyLaser in a Mirror RoomGeometry · Math · Number TheoryMediumFirst Prime That Reads Both WaysMath · Number TheoryMediumEven Piles of CardsArray · Hash Table · MathEasyBiggest Shared-Factor GroupUnion Find · Array · Hash TableHardN-th Number Divisible by One of ThreeMath · Binary Search · CombinatoricsMediumMake One From MultiplesArray · Math · Number TheoryHardReduced Fractions Up to a DenominatorMath · String · Number TheoryMediumK-th Smallest DivisorMath · Number TheoryMediumTowns Joined by Big DivisorsUnion Find · Array · MathHardNearest Coprime AncestorTree · Depth-First Search · ArrayHardPrime Budget, Full DivisorsRecursion · Math · Number TheoryHardDistinct GCDs of SelectionsArray · Math · CountingHardA Trio of DivisorsMath · Enumeration · Number TheoryEasyGCD of the ExtremesArray · Math · Number TheoryEasySorting With Shared-Divisor SwapsUnion Find · Array · MathHardPhoto Frames of the Same ShapeArray · Hash Table · MathMediumPairs With a Divisible ProductArray · Math · Number TheoryHardMerging Neighbors With a Common FactorStack · Array · MathHardSegments on a ChartGeometry · Array · MathMediumDivisor ChainsMath · Dynamic Programming · CombinatoricsHardSmallest Divides Them AllArray · Math · Number TheoryHardLeast Even MultipleMath · Number TheoryEasyCount Shared DivisorsMath · Enumeration · Number TheoryEasyChunks With a Common DivisorGreedy · Array · MathMediumSegments With a Given GCDArray · Math · Number TheoryMediumSplit by Shared EndsArray · Math · Dynamic ProgrammingMediumSegments With a Given LCMArray · Math · Number TheoryMediumPrime Factor Sum DescentMath · Number Theory · SimulationMediumNumbers for Two GroupsMath · Binary Search · Number TheoryMediumPrimes Behind the ProductArray · Hash Table · MathMediumTightest Prime PairMath · Number TheoryMediumDouble or SubtractMath · Number TheoryHardFirst Coprime CutArray · Hash Table · MathHardShave Primes Into OrderGreedy · Array · MathMediumEqual Window Sums on a RingGreedy · Array · MathMediumLargest Prime on the DiagonalsArray · Math · MatrixEasySpreading Ones by GCDArray · Math · Number TheoryMediumAll Linked by Common FactorsUnion Find · Array · MathHardCoprime Digit PairsArray · Hash Table · MathEasyA Number as Two PrimesArray · Math · EnumerationMediumGCD Between NeighboursLinked List · Math · Number TheoryMediumPositions With Square ProductsArray · Math · Number TheoryHardPaths With Exactly One PrimeTree · Depth-First Search · MathHardGCD Times SumArray · Math · Binary SearchHardEven Vowel and Consonant PiecesHash Table · Math · StringMediumBalanced Stretches of a StringHash Table · Math · StringHardLargest Unpayable AmountMath · Dynamic Programming · Number TheoryMediumShrink a List With RemaindersGreedy · Array · MathMedium
1 of 2 · 65 problems