Homework coding challenges

Practise homework with 40 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 · 24 Medium · 14 Hard · 2

Skills you'll practise: 2D arraysCase-insensitive comparisonInput validationInteger money mathInteger roundingString building2D boolean grids2D grid traversalAccumulatorsArithmetic expressionsArray scanningBit shifting
  • Python · C++ · C#
  • Automated tests
  • AI code review
  • Community solutions
341
Challenges
241
Solutions shared
9
Languages

All challenges

Search by name or topic, or filter by difficulty.

40 challenges
Easy

Countdown Until Matching Digits

Count down from a two-digit number until both digits are the same.

You'll learn While loopsDigit extraction
BeginnerCS1ConditionsFunctionsHomeworkIntro programmingStudent-beginner
No solutions yet
Easy

Coin Toss Streaks

Find the longest streak of heads, the longest streak of tails and the number of streaks in a coin toss record.

You'll learn Run detectionCounting
BeginnerCS1DiceHomeworkIntro programmingProbabilityStudent-beginner
No solutions yet
Easy

Grocery List Totals

Add up a grocery receipt in cents, charging sales tax only on taxable items.

You'll learn Parsing recordsInteger money math
BeginnerCS1FinanceHomeworkIntro programmingStudent-beginner
No solutions yet
Easy

Payroll With Overtime

Compute each employee's weekly pay in cents with time and a half after 40 hours and double time after 50.

You'll learn Piecewise rulesInteger rounding
BeginnerCS1ConditionsFinanceFunctionsHomeworkIntro programmingStudent-beginner
No solutions yet