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
Easy

Letter Grade

Turn a test score into a letter grade.

BeginnerConditionsLearning-path
No solutions yet
Easy

Flatten a 2D Array

Combine the rows of a 2D integer array into one array.

ArraysLoops
No solutions yet
Easy

Pascal’s Triangle

Build rows by adding neighboring entries from the previous row.

ArraysCombinatorics
No solutions yet
Easy

Count Handshakes

Count handshakes when every pair of people shakes hands once.

Combinatoricsmath
No solutions yet
Easy

Factorial

Multiply all positive integers up to n.

Beginner
No solutions yet
Easy

Collatz Sequence

Follow the halve-or-triple-and-add-one rule until reaching 1.

NumbersSimulation
No solutions yet
Easy

Move Zeroes

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

ArraysBeginnerStudent-beginner
No solutions yet
Easy

Reverse a String

Return the characters of a string in reverse order.

BeginnerStringsStudent-beginner
No solutions yet
Easy

Initials From a Name

Build uppercase initials from a full name.

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

Classify a Number by Its Divisors

Classify a positive integer as perfect, abundant, or deficient.

BeginnerNumber-theory
No solutions yet
Medium

Sum of Primes Below a Limit

Add all primes strictly below a limit.

Number-theorySieve
No solutions yet
Easy

Roman Numeral Value

Convert a Roman numeral to a number.

BeginnerLookup-tablesStringsStudent-beginner
No solutions yet
Easy

Prime Number Check

Decide whether a number is prime.

BeginnerLoopsNumbersStudent-beginner
No solutions yet
Easy

Multiplication Table Row

List the first multiples of a number.

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

Title Case

Capitalize the first letter of every word.

BeginnerStringsStudent-beginner
No solutions yet
Easy

Palindrome String

Check whether text reads the same forwards and backwards.

BeginnerStringsStudent-beginner
No solutions yet