Math coding challenges

Practise math with 21 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.

Easy · 13 Medium · 8

Skills you'll practise: Floating pointFormulasPolymorphismAdapter patternAmortised costArithmeticArithmetic seriesAttack patternsCase analysisClosed formulasCoin changeCoordinates
  • 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.

21 challenges
Easy

Price Decorators

Wrap a base price in discount, tax, shipping and coupon decorators applied in order.

You'll learn Decorator patternPercentages
Design patternsSimulationmath
No solutions yet
Medium

Weekly Payroll

Total a week's pay for salaried, hourly and commission employees, each paid by its own rule.

You'll learn PolymorphismOvertime math
ParsingSimulationmath
No solutions yet
Easy

Growing a Dynamic Array

Simulate how a dynamic array doubles its capacity and count the reallocations and copied elements.

You'll learn Dynamic arraysAmortised cost
ArraysSimulationmath
No solutions yet