Level 2 · Core
Recursion
About 20 steps, from the first idea to a mastery test.
Stage 0A function that calls itself4 stepsFree
- 1Sum of digits8 min
- 2Reverse a string9 min
- 3Same both ways10 min
- 4Power in a few steps12 min
Stage 1Lists and strings4 stepsFree
- 1The first value and the rest10 min
- 2Split the list in two11 min
- 3Cancel neighbouring twins13 min
- 4Write a number in binary11 min
Stage 2Divide and conquer4 stepsFree
- 1The best stretch, half by half16 min
- 2Who has more than half the votes14 min
- 3Move the tower14 min
- 4Fibonacci in a few steps17 min
Stage 3Include or skip4 stepsFree
- 1Take it or leave it14 min
- 2Strings with no two 1s together13 min
- 3Use the coin again, or move on15 min
- 4Two piles as even as possible14 min
Stage 4Mastery4 stepsFree
- 1Unfold the brackets18 min
- 2Grow the row16 min
- 3Every way to bracket a sum20 min
- 4Peaceful queens20 min