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

Prime Number Check

Decide whether a number is prime.

BeginnerLoopsNumbersStudent-beginner
No solutions yet
Easy

Array Minimum

Find the smallest value in a list.

ArraysBeginnerStudent-beginner
No solutions yet
Easy

Row Sums

Add up every row of a grid.

BeginnerGridsLearning-path
No solutions yet
Medium

Minesweeper Neighbor Counts

Annotate a rectangular board.

ArraysGrids
No solutions yet
Easy

Array Maximum

Find the largest value in a list.

ArraysBeginnerStudent-beginner
No solutions yet
Hard

Largest Rectangle in a Histogram

Find the largest rectangle that fits under a histogram.

AdvancedCompetitive-programmingStacks
No solutions yet
Easy

Second Largest Value

Find the second largest distinct value.

ArraysBeginnerStudent-beginner
No solutions yet
Easy

Replace Spaces With Dashes

Turn spaces into dashes to make a URL-style slug.

BeginnerLearning-pathStrings
No solutions yet
Hard

Trapping Rain Water

Compute how much rain water an elevation map holds.

AdvancedArraysCompetitive-programmingGreedy
No solutions yet
Easy

Cash: Fewest Coins

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

BeginnerGreedyStudent-beginnermath
No solutions yet
Medium

Empty Two Coin Piles

Decide whether paired removals can empty two piles.

Greedymath
No solutions yet
Easy

Chess Square Color

Determine the color of a square on an 8 by 8 board.

Beginnermath
No solutions yet
Easy

First Unique Character

Find the first character that appears only once.

BeginnerDictionariesStringsStudent-beginner
No solutions yet
Easy

Hours, Minutes, and Seconds

Convert a duration in seconds to a compact readable string.

Beginnermath
No solutions yet
Easy

Character Frequency

Count how often each character appears.

BeginnerDictionariesStringsStudent-beginner
No solutions yet
Medium

Number Spiral Lookup

Find a value by row and column in an expanding number spiral.

Patternsmath
No solutions yet
Easy

Array Average

Compute the average of a list of numbers.

ArraysBeginnerStudent-beginner
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