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
Easy

Pyramid Rows

Draw a right-aligned pyramid of # blocks.

BeginnerLearning-pathNested-loopsPatterns
No solutions yet
Hard

Word Break

Decide whether text can be split into dictionary words.

AdvancedDynamic-programmingHackathonStrings
No solutions yet
Hard

Find Many Patterns in Text

For each requested pattern, decide whether it appears as a contiguous substring anywhere in the shared text.

Pattern-matchingStringsTries
No solutions yet
Medium

List Primes With a Sieve

Find primes up to a limit by marking composite multiples.

Number-theorySieve
No solutions yet
Medium

Island Perimeter

Measure the coastline of land cells in a grid.

AdvancedGridsHackathon
No solutions yet
Medium

Largest Prime Factor

Find the largest prime that divides a positive integer.

AlgorithmsNumber-theory
No solutions yet
Easy

Hollow Square

Draw the outline of a square with * characters.

BeginnerLearning-pathNested-loopsPatterns
No solutions yet
Easy

Multiplication Grid

Build a full multiplication table.

BeginnerLearning-pathNested-loops
No solutions yet
Hard

Largest Rectangle in a Histogram

Find the largest rectangle that fits under a histogram.

AdvancedCompetitive-programmingStacks
No solutions yet
Easy

Rectangle Perimeter

Compute the perimeter of a rectangle from its sides.

BeginnerLearning-pathVariables
Easy

Celsius to Fahrenheit

Convert a temperature from Celsius to Fahrenheit.

BeginnerLearning-pathVariables
No solutions yet
Hard

Mini Stack-Language Interpreter

Evaluate a small stack language.

InterpretersParsingStacks
No solutions yet
Easy

Halve Until One

Count how many halvings bring a number down to 1.

BeginnerLearning-pathLoops
No solutions yet
Hard

Sliding Window Maximum

Report the maximum of every window of k numbers.

AdvancedCompetitive-programmingSliding-window
No solutions yet
Hard

Trapping Rain Water

Compute how much rain water an elevation map holds.

AdvancedArraysCompetitive-programmingGreedy
No solutions yet
Medium

Count Grid Paths

Count routes across a rectangular grid using only right and down moves.

CombinatoricsDynamic-programming
No solutions yet
Easy

Days in a Month

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

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