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.

15 challenges
Easy

Distance Between Points

Compute the straight-line distance between two points.

BeginnerFunctionsLearning-pathmath
No solutions yet
Easy

Count Handshakes

Count handshakes when every pair of people shakes hands once.

Combinatoricsmath
No solutions yet
Medium

Two Nonattacking Knights

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

Combinatoricsmath
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

Raise a Number to a Fractional Power

Raise a positive real number to a rational exponent.

Fractionsmath
No solutions yet
Easy

Median of a List

Find the middle value of a list after sorting.

Arraysmath
No solutions yet
Easy

Missing Number

Find the one number missing from 0..n.

ArraysBeginnerStudent-beginnermath
No solutions yet
Medium

Exact Fraction Arithmetic

Perform fraction operations and return a reduced fraction.

Fractionsmath
No solutions yet
Easy

Cash: Fewest Coins

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

BeginnerGreedyStudent-beginnermath
No solutions yet
Easy

Hours, Minutes, and Seconds

Convert a duration in seconds to a compact readable string.

Beginnermath
No solutions yet
Medium

Empty Two Coin Piles

Decide whether paired removals can empty two piles.

Greedymath
No solutions yet
Medium

Number Spiral Lookup

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

Patternsmath
No solutions yet
Easy

Chess Square Color

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

Beginnermath
No solutions yet
Easy

Difference of Squares

Subtract the sum of squares from the square of the sum.

Beginnermath
No solutions yet
Medium

Readability Grade

Estimate the school grade needed to read a text.

BeginnerStringsStudent-beginnermath
No solutions yet