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

Digit Power Sum

Add each digit raised to its position from the left.

Algorithms
No solutions yet
Medium

Shortest Weighted Routes

Find the minimum total route cost from city 1 to each city.

GraphsPriority-queuesShortest-path
No solutions yet
Medium

Digital Root

Sum the digits repeatedly until one digit remains.

Algorithms
No solutions yet
Hard

Minimum Network Connection Cost

Choose undirected links so that every vertex can reach every other vertex, with minimum total cost.

Disjoint-setsGraphsMinimum-spanning-tree
No solutions yet
Hard

Longest Path in a DAG

Find the heaviest path in a task dependency graph.

AdvancedGraphsHackathonTopological-sort
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
Easy

Word Tile Score

Add the tile values for every letter in a word.

Lookup-tablesStrings
No solutions yet
Hard

Count Inversions

Count the out-of-order pairs in a list.

AdvancedCompetitive-programmingSorting
No solutions yet
Medium

Count Islands

Count groups of connected land cells in a grid.

BeginnerGridsLearning-pathRecursion
No solutions yet
Easy

Every Other Character

Keep the characters at even positions.

BeginnerLearning-pathStrings
No solutions yet
Hard

Hotel Room Allocation

Assign arriving groups in order.

Segment-treesSimulation
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
Easy

Triangle Classification

Classify three side lengths as invalid, equilateral, isosceles, or scalene.

ConditionsGeometry
No solutions yet
Easy

First Negative Index

Find where the first negative number appears.

ArraysBeginnerLearning-path
No solutions yet
Medium

List Primes With a Sieve

Find primes up to a limit by marking composite multiples.

Number-theorySieve
No solutions yet
Easy

Celsius to Fahrenheit

Convert a temperature from Celsius to Fahrenheit.

BeginnerLearning-pathVariables
No solutions yet
Easy

Average of Three

Average three whole numbers.

BeginnerLearning-pathVariables