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

Recently solved by the community

Fresh passing solutions from other developers. Read their code and AI reviews, then solve the challenge to join the discussion.

All challenges

Search by topic, language, or difficulty.

150 challenges
Easy

Count Pairs With a Sum

Count pairs of positions whose values add up to a target.

ArraysBeginnerLearning-pathNested-loops
No solutions yet
Hard

Shortest Delivery Tour

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

AdvancedBitmasksCompetitive-programmingDynamic-programming
No solutions yet
Easy

Multiplication Grid

Build a full multiplication table.

BeginnerLearning-pathNested-loops
No solutions yet
Medium

K-th Smallest Element

Find the k-th smallest value without fully sorting.

AdvancedCompetitive-programmingSorting
No solutions yet
Easy

Distance Between Points

Compute the straight-line distance between two points.

BeginnerFunctionsLearning-pathmath
No solutions yet
Easy

Number Triangle

Build a triangle of increasing numbers.

BeginnerLearning-pathNested-loopsPatterns
No solutions yet
Easy

Roman Numeral Value

Convert a Roman numeral to a number.

BeginnerLookup-tablesStringsStudent-beginner
No solutions yet
Easy

Pyramid Rows

Draw a right-aligned pyramid of # blocks.

BeginnerLearning-pathNested-loopsPatterns
No solutions yet
Medium

Gradebook Top Student

Find the student with the highest average score.

BeginnerFunctionsGridsLearning-path
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

Tournament Standings

Rank teams from match records.

DictionariesParsingSorting
No solutions yet
Easy

Pangram Check

A pangram contains every English letter at least once.

SetsStrings
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

Course Schedule Order

Order courses so every prerequisite comes first.

AdvancedGraphsHackathonTopological-sort
No solutions yet
Medium

Game of Life Step

Advance Conway's Game of Life by one generation.

AdvancedGridsHackathonSimulation
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

Min and Max Together

Find the smallest and largest value in one pass.

ArraysBeginnerFunctionsLearning-path
No solutions yet
Easy

Every Other Character

Keep the characters at even positions.

BeginnerLearning-pathStrings
No solutions yet