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
Hard

Matrix Chain Multiplication

Find the cheapest order to multiply a chain of matrices.

AdvancedCompetitive-programmingDynamic-programming
No solutions yet
Medium

Subtract Digits to Reach Zero

Use as few digit subtractions as possible to reach zero.

Dynamic-programmingNumbers
No solutions yet
Easy

Armstrong Number

Check whether a number equals the sum of its digits raised to the digit count.

BeginnerNumbersStudent-beginner
No solutions yet
Hard

Minimum Elevator Rides

Group people into as few weight-limited elevator rides as possible.

Dynamic-programmingOptimization
No solutions yet
Easy

Make an Array Nondecreasing

Find the fewest increments needed so each value is at least the previous one.

ArraysGreedy
No solutions yet
Medium

Largest Adjacent-Digit Product

Take every contiguous window of span digits and multiply its digits.

NumbersSliding-window
No solutions yet
Easy

Move Zeroes

Move every zero to the end while keeping the other order.

ArraysBeginnerStudent-beginner
No solutions yet
Easy

Longest Word

Find the longest word in a sentence.

BeginnerStringsStudent-beginner
No solutions yet
Easy

Palindrome Number

Check whether a number reads the same backwards.

BeginnerNumbersStudent-beginner
No solutions yet
Hard

Count Numbers With Distinct Neighbors

Count range values whose adjacent decimal digits are never equal.

Dynamic-programmingNumbers
No solutions yet
Easy

Difference of Squares

Subtract the sum of squares from the square of the sum.

Beginnermath
No solutions yet
Easy

Greatest Common Divisor

Find the largest number that divides both values.

BeginnerNumbersStudent-beginner
No solutions yet
Easy

Password Rules Check

Check a password against simple strength rules.

BeginnerConditionsLearning-pathStrings
No solutions yet
Easy

Power of Two

Check whether a number is a power of two.

BeginnerNumbersStudent-beginner
No solutions yet
Easy

Rotate Array

Rotate a list to the right by some steps.

ArraysBeginnerStudent-beginner
No solutions yet
Easy

Sum Even Fibonacci Terms

Add the even Fibonacci terms that do not exceed a limit.

NumbersSequences
No solutions yet
Easy

Acronym Generator

Create an acronym from the first letter of every word, in uppercase.

ParsingStrings
No solutions yet
Easy

Hamming Distance

Compare two DNA strings position by position and count the differences.

SequencesStrings
No solutions yet