Algorithms coding challenges

Practise algorithms with 4 coding challenges, from easy to hard. Every challenge runs in your browser with instant tests, an AI review of your code and community solutions to compare.

Medium · 4

Skills you'll practise: Binary search on answerDigit extractionDigit sumsLoopsMonotonic checksNested loopsPowersPrime factorizationTrial division
  • Python · C++ · C#
  • Automated tests
  • AI code review
  • Community solutions
226
Challenges
2
Solutions shared
3
Languages

All challenges

Search by topic, language, or difficulty.

4 challenges
Medium

Largest Prime Factor

Find the largest prime that divides a positive integer.

You'll learn Prime factorizationTrial division
AlgorithmsNumber-theory
No solutions yet
Medium

Factory Production Time

Find the earliest time parallel machines can finish a target number of items.

You'll learn Binary search on answerMonotonic checks
AlgorithmsBinary-search
No solutions yet
Medium

Digit Power Sum

Add each digit raised to its position from the left.

You'll learn Digit extractionPowersLoops
Algorithms
No solutions yet
Medium

Digital Root

Sum the digits repeatedly until one digit remains.

You'll learn Nested loopsDigit sums
Algorithms
No solutions yet