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
0
Solutions shared
3
Languages

All challenges

Search by topic, language, or difficulty.

150 challenges
Hard

Shortest Delivery Tour

Visit every city once and return home as cheaply as possible.

AdvancedBitmasksCompetitive-programmingDynamic-programming
No solutions yet
Easy

Distance Between Points

Compute the straight-line distance between two points.

BeginnerFunctionsLearning-pathmath
No solutions yet
Medium

Gradebook Top Student

Find the student with the highest average score.

BeginnerFunctionsGridsLearning-path
No solutions yet
Medium

Count Islands

Count groups of connected land cells in a grid.

BeginnerGridsLearning-pathRecursion
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

Every Other Character

Keep the characters at even positions.

BeginnerLearning-pathStrings
No solutions yet
Medium

Flatten Arbitrarily Nested Lists (Recursion)

Practice recursion by flattening arbitrarily nested lists while skipping null entries.

Data-structuresRecursion
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
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
Easy

Halve Until One

Count how many halvings bring a number down to 1.

BeginnerLearning-pathLoops
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
Hard

Hotel Room Allocation

Assign arriving groups in order.

Segment-treesSimulation
No solutions yet
Medium

Raise a Fraction to a Real Power

Raise a positive fraction to a real-valued exponent.

Fractionsmath
No solutions yet
Easy

Celsius to Fahrenheit

Convert a temperature from Celsius to Fahrenheit.

BeginnerLearning-pathVariables
No solutions yet
Easy

Min and Max Together

Find the smallest and largest value in one pass.

ArraysBeginnerFunctionsLearning-path
No solutions yet
Hard

Median of Two Sorted Arrays

Find the median of two sorted lists combined.

AdvancedBinary-searchCompetitive-programming
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

Days in a Month

Return how many days a month has, including leap years.

BeginnerConditionsFunctionsLearning-path
No solutions yet