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
Medium

Recursive Palindrome

Check a palindrome recursively, ignoring case and punctuation.

BeginnerLearning-pathRecursionStrings
No solutions yet
Medium

Count Dice Sequences

Count ordered die-roll sequences with a given total.

CombinatoricsDynamic-programming
No solutions yet
Easy

Second Largest Value

Find the second largest distinct value.

ArraysBeginnerStudent-beginner
No solutions yet
Medium

Exact Fraction Arithmetic

Perform fraction operations and return a reduced fraction.

Fractionsmath
No solutions yet
Hard

Matrix Chain Multiplication

Find the cheapest order to multiply a chain of matrices.

AdvancedCompetitive-programmingDynamic-programming
No solutions yet
Easy

Initials From a Name

Build uppercase initials from a full name.

BeginnerLearning-pathStrings
No solutions yet
Easy

Palindrome Number

Check whether a number reads the same backwards.

BeginnerNumbersStudent-beginner
No solutions yet
Medium

Find Right-Triangle Triples

List all integer right triangles with a specified perimeter.

GeometryNumber-theory
No solutions yet
Medium

Tree Diameter

A tree is a connected undirected graph with no cycles.

GraphsTrees
No solutions yet
Medium

Count Grid Paths

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

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

Prime Number Check

Decide whether a number is prime.

BeginnerLoopsNumbersStudent-beginner
No solutions yet
Easy

Letter Grade

Turn a test score into a letter grade.

BeginnerConditionsLearning-path
No solutions yet
Easy

Body Mass Index

Compute BMI from weight and height.

BeginnerLearning-pathVariables
No solutions yet
Easy

Absolute Value Without abs

Compute an absolute value with a condition.

BeginnerConditionsLearning-path
No solutions yet
Easy

Chess Square Color

Determine the color of a square on an 8 by 8 board.

Beginnermath
No solutions yet
Easy

Hours, Minutes, and Seconds

Convert a duration in seconds to a compact readable string.

Beginnermath
No solutions yet
Easy

Fibonacci Number

Return the n-th Fibonacci number.

BeginnerLoopsSequencesStudent-beginner
No solutions yet