Patterns coding challenges

Practise patterns with 4 coding challenges, from easy to hard. Every challenge runs in your browser with instant tests, an AI review of your code and community solutions to compare.

Easy · 3 Medium · 1

Skills you'll practise: Building stringsCase analysisCounters across rowsEdge detectionGrowing rowsMath patternsPaddingString patterns
  • Python · C++ · C#
  • Automated tests
  • AI code review
  • Community solutions
226
Challenges
2
Solutions shared
3
Languages

All challenges

Search by topic, language, or difficulty.

4 challenges
Easy

Number Triangle

Build a triangle of increasing numbers.

You'll learn Growing rowsCounters across rows
BeginnerLearning-pathNested-loopsPatterns
No solutions yet
Easy

Pyramid Rows

Draw a right-aligned pyramid of # blocks.

You'll learn String patternsPadding
BeginnerLearning-pathNested-loopsPatterns
No solutions yet
Easy

Hollow Square

Draw the outline of a square with * characters.

You'll learn Edge detectionBuilding strings
BeginnerLearning-pathNested-loopsPatterns
No solutions yet
Medium

Number Spiral Lookup

Find a value by row and column in an expanding number spiral.

You'll learn Math patternsCase analysis
Patternsmath
No solutions yet