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
Medium

Factory Production Time

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

AlgorithmsBinary-search
No solutions yet
Hard

Hotel Room Allocation

Assign arriving groups in order.

Segment-treesSimulation
No solutions yet
Easy

Count Handshakes

Count handshakes when every pair of people shakes hands once.

Combinatoricsmath
No solutions yet
Easy

Swap First and Last

Exchange the first and last items of a list.

ArraysBeginnerLearning-path
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

Character Frequency

Count how often each character appears.

BeginnerDictionariesStringsStudent-beginner
No solutions yet
Easy

Largest of Three

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

BeginnerConditionsLearning-path
No solutions yet
Easy

DNA to RNA Transcription

Build an RNA string by replacing every DNA character with its partner.

MappingStrings
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
Easy

Triangle Classification

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

ConditionsGeometry
No solutions yet
Medium

Raise a Number to a Fractional Power

Raise a positive real number to a rational exponent.

Fractionsmath
No solutions yet
Easy

Countdown to Liftoff

Count down from a number and end with Liftoff!

BeginnerLearning-pathLoops
No solutions yet
Medium

Empty Two Coin Piles

Decide whether paired removals can empty two piles.

Greedymath
No solutions yet
Easy

Body Mass Index

Compute BMI from weight and height.

BeginnerLearning-pathVariables
No solutions yet
Easy

Multiplication Table Row

List the first multiples of a number.

BeginnerLearning-pathLoops
No solutions yet
Easy

Letter Grade

Turn a test score into a letter grade.

BeginnerConditionsLearning-path
No solutions yet
Easy

First Unique Character

Find the first character that appears only once.

BeginnerDictionariesStringsStudent-beginner
No solutions yet
Easy

Above-Average Values

Keep the values that are greater than the average.

ArraysBeginnerLearning-path
No solutions yet