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
Medium

Find Right-Triangle Triples

List all integer right triangles with a specified perimeter.

GeometryNumber-theory
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

Right-Triangle Product

Find the largest side product of an integer right triangle with a given perimeter.

GeometryNumber-theory
No solutions yet
Medium

Sum of Primes Below a Limit

Add all primes strictly below a limit.

Number-theorySieve
No solutions yet
Easy

Doubling Grains on a Chessboard

Calculate a square’s grain count and the total on all 64 squares.

NumbersSequences
No solutions yet
Easy

Every Other Character

Keep the characters at even positions.

BeginnerLearning-pathStrings
No solutions yet
Easy

Remove Duplicates

Keep only the first occurrence of each value.

ArraysBeginnerSetsStudent-beginner
No solutions yet
Easy

Min and Max Together

Find the smallest and largest value in one pass.

ArraysBeginnerFunctionsLearning-path
No solutions yet
Medium

Count Dice Sequences

Count ordered die-roll sequences with a given total.

CombinatoricsDynamic-programming
No solutions yet
Hard

Maximum Project Rewards

Choose nonoverlapping projects to earn the largest total reward.

Dynamic-programmingScheduling
No solutions yet
Medium

Recursive Palindrome

Check a palindrome recursively, ignoring case and punctuation.

BeginnerLearning-pathRecursionStrings
No solutions yet
Hard

Matrix Chain Multiplication

Find the cheapest order to multiply a chain of matrices.

AdvancedCompetitive-programmingDynamic-programming
No solutions yet
Hard

Cut a Rectangle Into Squares

Find the fewest straight cuts needed to produce only squares.

Dynamic-programmingGeometry
No solutions yet
Medium

Count Coin Combinations

Count ways to make an amount with unlimited coins of specified denominations.

CombinatoricsDynamic-programming
No solutions yet
Medium

Minesweeper Neighbor Counts

Annotate a rectangular board.

ArraysGrids
No solutions yet
Medium

Subtract Digits to Reach Zero

Use as few digit subtractions as possible to reach zero.

Dynamic-programmingNumbers
No solutions yet
Easy

Roman Numeral Value

Convert a Roman numeral to a number.

BeginnerLookup-tablesStringsStudent-beginner
No solutions yet
Easy

Fibonacci Number

Return the n-th Fibonacci number.

BeginnerLoopsSequencesStudent-beginner
No solutions yet