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
Hard

Trapping Rain Water

Compute how much rain water an elevation map holds.

AdvancedArraysCompetitive-programmingGreedy
No solutions yet
Easy

Sum an Array

Add up all values in a list.

ArraysBeginnerStudent-beginner
No solutions yet
Hard

Maximum Project Rewards

Choose nonoverlapping projects to earn the largest total reward.

Dynamic-programmingScheduling
No solutions yet
Easy

Power by Repeated Multiplication

Raise a number to a power with a loop.

BeginnerLearning-pathLoops
No solutions yet
Easy

Array Minimum

Find the smallest value in a list.

ArraysBeginnerStudent-beginner
No solutions yet
Easy

Array Maximum

Find the largest value in a list.

ArraysBeginnerStudent-beginner
No solutions yet
Easy

Ticket Price by Age

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

BeginnerConditionsLearning-path
No solutions yet
Medium

Minesweeper Neighbor Counts

Annotate a rectangular board.

ArraysGrids
No solutions yet
Hard

Largest Rectangle in a Histogram

Find the largest rectangle that fits under a histogram.

AdvancedCompetitive-programmingStacks
No solutions yet
Easy

Missing Number

Find the one number missing from 0..n.

ArraysBeginnerStudent-beginnermath
No solutions yet
Easy

Rectangle Perimeter

Compute the perimeter of a rectangle from its sides.

BeginnerLearning-pathVariables
Hard

Minimum Window Substring

Find the shortest piece of text containing all required characters.

AdvancedCompetitive-programmingSliding-windowStrings
No solutions yet
Easy

Cash: Fewest Coins

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

BeginnerGreedyStudent-beginnermath
No solutions yet
Easy

Running Sum

Replace each value with the total so far.

ArraysBeginnerLearning-path
No solutions yet
Easy

Largest of Three

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

BeginnerConditionsLearning-path
No solutions yet
Easy

Count Uppercase Letters

Count the capital letters in a text.

BeginnerLearning-pathStrings
No solutions yet
Medium

Smallest Missing Coin Sum

Find the first positive amount that cannot be made from the available coins.

ArraysGreedy
No solutions yet
Medium

Largest Adjacent-Digit Product

Take every contiguous window of span digits and multiply its digits.

NumbersSliding-window
No solutions yet