Sequences coding challenges

Practise sequences with 5 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 · 4 Medium · 1

Skills you'll practise: 2D DP tablesBig numbersCountingFilteringIterationMemory optimizationPowers of twoSequence generationString comparisonUpdating two variables
  • 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.

5 challenges
Easy

Fibonacci Number

Return the n-th Fibonacci number.

You'll learn IterationUpdating two variables
BeginnerLoopsSequencesStudent-beginner
No solutions yet
Easy

Doubling Grains on a Chessboard

Calculate a square’s grain count and the total on all 64 squares.

You'll learn Powers of twoBig numbers
NumbersSequences
No solutions yet
Easy

Sum Even Fibonacci Terms

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

You'll learn Sequence generationFiltering
NumbersSequences
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.

You'll learn 2D DP tablesMemory optimization
Dynamic-programmingSequences
No solutions yet
Easy

Hamming Distance

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

You'll learn String comparisonCounting
SequencesStrings
No solutions yet