Challenges

Beginner journey

Very easy + easy · Your dashboard follows this path. Browse any difficulty in Challenges.

LET’S GET YOU STARTED

Add Two Counts

Return the sum of two supplied whole numbers.

Start a challenge 5 XP · 3 min

Your growing collection

Every solved challenge is a little win.

0 / 200 solved

0% of the selected library completed

FIND YOUR FLOW

Choose your challenge

Start small. Follow your curiosity.

Browse any difficulty. Very easy and easy challenges are free; medium and hard challenges require Pro to play.

200 challenges to discover
Easy

Build it yourself

Check Word Spacing

Return true if message is nonempty, has no leading or trailing space, and has no two consecutive spaces.

Multiple formatting conditions

6 min12 languages
Easy

Build it yourself

Find All Required Marks

Return true if message contains at least one dot, one hyphen, and one underscore, in any order.

Independent presence flags

6 min12 languages
Easy

Build it yourself

Recognize a Signed Whole Number

Return true when message consists of one or more decimal digits, optionally preceded by a single minus sign. Leading zeroes are allowed; spaces and plus signs are not.

Optional prefix syntax

6 min12 languages
Easy

Build it yourself

Recognize a Fixed Decimal

Return true when message contains digits, exactly one dot, and at least one digit on each side of the dot. Signs and spaces are not allowed.

Separator syntax

6 min12 languages
Easy

Build it yourself

Keep Signal Phases in Order

Return true if message contains only a, b and c, with all a characters before all b characters and all b characters before all c characters. Any group may be empty.

Monotonic state validation

6 min12 languages
Easy

Build it yourself

Match a Question-Mark Pattern

Return true if pattern and message have equal length and every pattern character either equals the corresponding message character or is ?.

Aligned text comparison

6 min12 languages
Easy

Build it yourself

Count Changes of Direction

Count how often the direction of change reverses. Ignore equal neighboring values when determining direction.

Remember the previous nonzero trend

6 min12 languages
Easy

Build it yourself

Count Strict Interior Peaks

Count interior items strictly greater than both immediate neighbors. The first and last items cannot be peaks.

Two-neighbor tests

6 min12 languages
Easy

Build it yourself

Locate Strict Interior Valleys

Return the indices of interior items strictly smaller than both immediate neighbors.

Collecting local features

6 min12 languages
Easy

Build it yourself

Locate Repeated Neighbors

Return the right-hand indices of neighboring pairs with equal values.

Pair positions

6 min12 languages
Easy

Build it yourself

Locate Direct Sign Crossings

Return right-hand indices where one neighbor is strictly negative and the other strictly positive. Pairs involving zero do not count.

Conditional neighbor relation

6 min12 languages
Easy

Build it yourself

How the Steps Change

For each interior position, return next - 2 * current + previous, in order. Fewer than three items gives an empty list.

Second differences

6 min12 languages
Easy

Build it yourself

Keep Neighbor Changes Small

Return true if the absolute difference between every pair of neighbors is at most limit. limit is nonnegative.

Bounded adjacent differences

6 min12 languages
Easy

Build it yourself

Change Direction Every Time

Return true if all adjacent differences are nonzero and their signs alternate. Empty and one-item lists return true.

Alternating neighbor trends

6 min12 languages
Easy

Build it yourself

The Largest Neighbor Product

Return the largest product of two neighboring items. The list contains at least two items.

Pair-valued candidates

6 min12 languages
Easy

Build it yourself

Average Each Neighbor Pair

Return the whole-number average of each neighboring pair, discarding any fractional part toward zero.

Pairwise aggregation

6 min12 languages
Easy

Build it yourself

Growing Rows of Dots

Return count totals: 1, 1+2, 1+2+3, and so on. count is 0 to 20.

Accumulate changing increments

6 min12 languages
Easy

Build it yourself

Record Each Doubling

Return count values beginning at initial, with every later value twice the preceding value. count is 0 to 10.

Record before updating

6 min12 languages
Easy

Build it yourself

Cycle through Station Labels

Return count labels cycling through 0 to period-1 repeatedly. count is 0 to 20 and period is 1 to 10.

Remainder-based construction

6 min12 languages
Easy

Build it yourself

Alternate Two Supplied Values

Return count items alternating first, second, first, second, starting with first. count is 0 to 20.

Position-selected construction

6 min12 languages
Easy

Build it yourself

Distances from a Selected Position

For indices 0 through count-1, return the distance from center. count is 0 to 20; center is 0 to 20 and may lie beyond the sequence.

Absolute position offsets

6 min12 languages
Easy

Build it yourself

Climb and Descend Once

Return 1 through height, followed by height-1 down to 1. height is 0 to 20; height 0 gives an empty list.

Two consecutive traversals

6 min12 languages
Easy

Build it yourself

Increase the Step Each Time

Return count values beginning at initial. Add step to obtain the next value, then increase the step by 1 before each further addition. count is 0 to 20.

Two evolving values

6 min12 languages
Easy

Build it yourself

Compare Corresponding Readings

The lists have equal length. Return the absolute difference between corresponding values at each position.

Aligned absolute differences

6 min12 languages