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

Maximum Project Rewards

Choose nonoverlapping projects to earn the largest total reward.

Dynamic-programmingScheduling
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
Hard

Mini Stack-Language Interpreter

Evaluate a small stack language.

InterpretersParsingStacks
No solutions yet
Hard

Strongly Connected Components

Count groups of nodes that can all reach each other.

AdvancedCompetitive-programmingGraphs
No solutions yet
Hard

Hotel Room Allocation

Assign arriving groups in order.

Segment-treesSimulation
No solutions yet
Medium

Count Islands

Count groups of connected land cells in a grid.

BeginnerGridsLearning-pathRecursion
No solutions yet
Hard

Longest Path in a DAG

Find the heaviest path in a task dependency graph.

AdvancedGraphsHackathonTopological-sort
No solutions yet
Hard

Word Break

Decide whether text can be split into dictionary words.

AdvancedDynamic-programmingHackathonStrings
No solutions yet
Medium

Game of Life Step

Advance Conway's Game of Life by one generation.

AdvancedGridsHackathonSimulation
No solutions yet
Hard

Matrix Chain Multiplication

Find the cheapest order to multiply a chain of matrices.

AdvancedCompetitive-programmingDynamic-programming
No solutions yet
Hard

Count Inversions

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

AdvancedCompetitive-programmingSorting
No solutions yet
Medium

Factory Production Time

Find the earliest time parallel machines can finish a target number of items.

AlgorithmsBinary-search
No solutions yet
Medium

Longest Common Subsequence Length

A subsequence is formed by deleting zero or more elements while preserving the order of the remaining elements.

Dynamic-programmingSequences
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

Median of Two Sorted Arrays

Find the median of two sorted lists combined.

AdvancedBinary-searchCompetitive-programming
No solutions yet