Your concept feed

27 ideas

A few small steps. No rush.

Follow the connections in this topic

Let’s picture it

Car and cat start the same way.

c
a
r / t

Write c, then a, just once. Split where the words become different.

Swipe when you’re ready
One little change

A prefix isn’t always a word.

c
a
r
t ✓

If we only stored cart, reaching c-a-r is not enough to say car was stored too.

Same idea. One more small step.
Now it has a name

Mark where each word ends.

car ✓
cart ✓
cat ✓

This shared-prefix tree is a trie. The word-end mark tells a whole word apart from just its beginning.

Want to try a tiny question?
No pressure. Just try it.

Only cart is stored. Does car count as a stored word?

You can also keep scrolling
1 / 4
Tries

One small step at a time.

This idea builds on these smaller ones. Pick any to revisit it here.

Count a tiny family of dots.

Parent
Child: 1
Child: 1

One parent has two children. Each child says, “There’s one of me.”

1 / 3
Let’s picture it

What could ca? mean?

ca?
car
cat

Let ? stand for one letter. Both car and cat could match.

Swipe when you’re ready
One little change

Try the allowed endings.

ca
r?
t?

At the wildcard, check each child. One failed ending doesn’t rule out the others.

Same idea. One more small step.
Now it has a name

Storage and search work together.

trie: choices
search: try them

The trie tells us which letters exist. The search tries the possibilities. These are two different jobs.

Want to try a tiny question?
No pressure. Just try it.

One wildcard child fails. Can another child still match?

You can also keep scrolling
1 / 4
Tries

This idea builds on these smaller ones. Pick any to revisit it here.

Car and cat start the same way.

c
a
r / t

Write c, then a, just once. Split where the words become different.

1 / 3
Let’s picture it

Type just ca.

ca
car
cat

Follow c, then a. All the matching words live below that shared beginning.

Swipe when you’re ready
One little change

Now collect the word endings.

car
cart
cat

Walk below ca and gather the marked words, such as car, cart, and cat.

Same idea. One more small step.
Now it has a name

Finding and listing are different jobs.

find prefix
collect words

Finding ca can be quick. Listing a million completions still means producing a million outputs.

Want to try a tiny question?
No pressure. Just try it.

Does a short prefix guarantee a tiny amount of total work?

You can also keep scrolling
1 / 4
Tries

One small step at a time.

This idea builds on these smaller ones. Pick any to revisit it here.

Car and cat start the same way.

c
a
r / t

Write c, then a, just once. Split where the words become different.

1 / 3
Let’s picture it

Find CAT on a letter board.

C
A
R
T

Move between neighboring cells. The letters on your path build a word.

Swipe when you’re ready
One little change

Let a trie guide each move.

C
CA
CAT ✓

After C, only follow a neighbor if its letter continues a stored prefix.

Same idea. One more small step.
Now it has a name

Remember this path’s cells.

mark
explore
unmark

We move on the board and through the trie together. If reuse is forbidden, mark a cell, explore, then unmark it.

Want to try a tiny question?
No pressure. Just try it.

Should one failed path permanently block its cells for every other attempt?

You can also keep scrolling
1 / 4
Tries

This idea builds on these smaller ones. Pick any to revisit it here.

Follow one path for a while.

Home
Park
Café

Instead of finishing a whole layer, keep walking down one branch. This is depth-first search, or DFS.

1 / 3
You've reached the end of these ideas.Try them without the labels