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

Array Maximum

Find the largest value in a list.

ArraysBeginnerStudent-beginner
No solutions yet
Medium

Exact Fraction Arithmetic

Perform fraction operations and return a reduced fraction.

Fractionsmath
No solutions yet
Medium

Tic-Tac-Toe Winner

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

BeginnerConditionsGridsLearning-path
No solutions yet
Easy

Prime Number Check

Decide whether a number is prime.

BeginnerLoopsNumbersStudent-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
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
Medium

Smallest Missing Coin Sum

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

ArraysGreedy
No solutions yet
Easy

Character Frequency

Count how often each character appears.

BeginnerDictionariesStringsStudent-beginner
No solutions yet
Medium

Empty Two Coin Piles

Decide whether paired removals can empty two piles.

Greedymath
No solutions yet
Medium

Largest Adjacent-Digit Product

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

NumbersSliding-window
No solutions yet
Medium

Number Spiral Lookup

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

Patternsmath
No solutions yet
Easy

Make an Array Nondecreasing

Find the fewest increments needed so each value is at least the previous one.

ArraysGreedy
No solutions yet
Easy

Array Average

Compute the average of a list of numbers.

ArraysBeginnerStudent-beginner
No solutions yet