Level 1 · Foundations
Strings
About 24 steps, from the first idea to a mastery test.
Stage 0Walking a string4 stepsFree
- 1A string is a row of characters6 min
- 2Building a new string7 min
- 3Compare from both ends7 min
- 4Letters are numbers9 min
Stage 1Counting characters4 stepsFree
- 1Twenty-six boxes7 min
- 2Same letters, any order7 min
- 3Count first, then look7 min
- 4Enough letters?7 min
Stage 2Two pointers on text4 stepsFree
- 1Find a word's two ends9 min
- 2One mismatch allowed10 min
- 3Measure each run8 min
- 4Two strings, two pointers6 min
Stage 3Windows on text4 stepsFree
- 1Jump past the repeat10 min
- 2Slide the letter counts10 min
- 3At most k kinds10 min
- 4Cover everything, then tighten14 min
Stage 4Parsing4 stepsFree
- 1Reading a number from text10 min
- 2Cut at every separator8 min
- 3Column by column8 min
- 4Compare piece by piece10 min
Stage 5Mastery4 stepsFree
- 1Build a palindrome10 min
- 2Made of copies?10 min
- 3Longest mirror inside14 min
- 4Exactly k kinds14 min