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

Simple Interest

Find the total amount after simple interest.

BeginnerLearning-pathVariables
No solutions yet
Easy

Pangram Check

A pangram contains every English letter at least once.

SetsStrings
No solutions yet
Medium

Two Nonattacking Knights

Count safe placements of two knights for each square board size.

Combinatoricsmath
No solutions yet
Medium

Tic-Tac-Toe Winner

Decide the result of a tic-tac-toe board.

BeginnerConditionsGridsLearning-path
No solutions yet
Medium

Raise a Fraction to a Real Power

Raise a positive fraction to a real-valued exponent.

Fractionsmath
No solutions yet
Medium

Recursive Power

Compute a power recursively by halving the exponent.

BeginnerLearning-pathRecursion
No solutions yet
Easy

First Negative Index

Find where the first negative number appears.

ArraysBeginnerLearning-path
No solutions yet
Medium

Can We Split Into Two Teams?

Decide whether people can be assigned to two teams so that each listed pair is on opposite teams.

BipartiteGraphs
No solutions yet
Easy

Sum Even Fibonacci Terms

Add the even Fibonacci terms that do not exceed a limit.

NumbersSequences
No solutions yet
Easy

Cash: Fewest Coins

Give change with as few U.S. coins as possible.

BeginnerGreedyStudent-beginnermath
No solutions yet
Easy

Prime Number Check

Decide whether a number is prime.

BeginnerLoopsNumbersStudent-beginner
No solutions yet
Easy

Collatz Sequence

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

NumbersSimulation
No solutions yet
Hard

Count Numbers With Distinct Neighbors

Count range values whose adjacent decimal digits are never equal.

Dynamic-programmingNumbers
No solutions yet
Hard

Minimum Elevator Rides

Group people into as few weight-limited elevator rides as possible.

Dynamic-programmingOptimization
No solutions yet
Easy

Power by Repeated Multiplication

Raise a number to a power with a loop.

BeginnerLearning-pathLoops
No solutions yet
Easy

Sum of Odd Numbers

Add every odd number up to a limit.

BeginnerLearning-pathLoops
No solutions yet
Easy

Row Sums

Add up every row of a grid.

BeginnerGridsLearning-path
No solutions yet
Medium

Tree Diameter

A tree is a connected undirected graph with no cycles.

GraphsTrees
No solutions yet