Programming Challenges

Strengthen your problem-solving skills with language-neutral challenges you can solve in Python, C++, or C#. Every submission is checked by automated tests and reviewed by AI.

  • Python · C++ · C#
  • Automated tests
  • AI code review
  • Community solutions
Learning path
150
Challenges
2
Solutions shared
3
Languages

All challenges

Search by topic, language, or difficulty.

150 challenges
Easy

Largest of Three

Pick the largest of three numbers without a built-in max.

BeginnerConditionsLearning-path
No solutions yet
Easy

Swap First and Last

Exchange the first and last items of a list.

ArraysBeginnerLearning-path
No solutions yet
Hard

Strongly Connected Components

Count groups of nodes that can all reach each other.

AdvancedCompetitive-programmingGraphs
No solutions yet
Easy

Cart Total With Discount

Total a shopping cart and apply a discount above a threshold.

ArraysBeginnerFunctionsLearning-path
No solutions yet
Easy

Sum of Odd Numbers

Add every odd number up to a limit.

BeginnerLearning-pathLoops
No solutions yet
Easy

Word Tile Score

Add the tile values for every letter in a word.

Lookup-tablesStrings
No solutions yet
Medium

Recursive Power

Compute a power recursively by halving the exponent.

BeginnerLearning-pathRecursion
No solutions yet
Easy

Power by Repeated Multiplication

Raise a number to a power with a loop.

BeginnerLearning-pathLoops
No solutions yet
Easy

Triangle Classification

Classify three side lengths as invalid, equilateral, isosceles, or scalene.

ConditionsGeometry
No solutions yet
Easy

Ticket Price by Age

Choose a cinema ticket price from the visitor's age.

BeginnerConditionsLearning-path
No solutions yet
Easy

Body Mass Index

Compute BMI from weight and height.

BeginnerLearning-pathVariables
No solutions yet
Easy

Count Uppercase Letters

Count the capital letters in a text.

BeginnerLearning-pathStrings
No solutions yet
Medium

Island Perimeter

Measure the coastline of land cells in a grid.

AdvancedGridsHackathon
No solutions yet
Easy

Count Positive Numbers

Count the values greater than zero in a list.

ArraysBeginnerLearning-path
No solutions yet
Medium

Robot Command Simulator

Move a robot using L (turn left 90 degrees), R (turn right 90 degrees), and A (advance one step).

SimulationState-machines
No solutions yet
Hard

Maximum Project Rewards

Choose nonoverlapping projects to earn the largest total reward.

Dynamic-programmingScheduling
No solutions yet
Easy

Collatz Sequence

Follow the halve-or-triple-and-add-one rule until reaching 1.

NumbersSimulation
No solutions yet
Medium

Raise a Fraction to a Real Power

Raise a positive fraction to a real-valued exponent.

Fractionsmath
No solutions yet