Skip to content

Commit 563b3b7

Browse files
committed
add compressed imgs
1 parent dff4c32 commit 563b3b7

24 files changed

+1
-6
lines changed
Loading

assets/imgs/compressed/call-stack.png

-16.3 KB
Loading
-3.66 KB
Loading

assets/imgs/compressed/cover.jpg

-55.3 KB
Loading
-6.18 KB
Loading
-2.86 KB
Loading
-6.88 KB
Loading
-3.61 KB
Loading

assets/imgs/compressed/latency_2.png

-2 KB
Loading
-6.63 KB
Loading
54.7 KB
Loading
-6.78 KB
Loading
57 KB
Loading

assets/imgs/compressed/mem_idle_2.png

58.6 KB
Loading
-9.06 KB
Loading

assets/imgs/compressed/next.png

126 Bytes
Loading

assets/imgs/compressed/prev.png

152 Bytes
Loading

assets/imgs/compressed/referer.png

876 Bytes
Loading

assets/imgs/compressed/rps.png

4.33 KB
Loading

assets/imgs/compressed/rps_2.png

-2.14 KB
Loading

assets/imgs/compressed/trie-eow.png

36.6 KB
Loading
26.7 KB
Loading

assets/imgs/compressed/user-agent.png

-14.5 KB
Loading

chapters/ch07.0-ex-implementing-a-trie.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![Read Prev](/assets/imgs/prev.png)](/chapters/ch06.4-the-need-for-a-trie.md)
22

3-
# Exercise - Implementing a `Trie`
3+
# Exercises - Implementing a `Trie`
44

55
> This exercise will motivate you to work on implementing your solution independently. Once you have completed the exercise, you can move on to the next challenge or read the solution to find a different approach.
66
>
@@ -25,9 +25,7 @@ The Trie starts with a root node that doesn't hold any character. It serves as t
2525
```
2626

2727
- **Level 1**: You have the characters "O", "T", and "C" branching from the root node.
28-
2928
- **Level 2 and Beyond**: These nodes further branch out to form the words.
30-
3129
- "O" branches to "K", completing the word "OK".
3230
- "T" branches to "O", completing the word "TO".
3331
- "C" branches to "A" and "U":
@@ -53,15 +51,12 @@ In this first challenge, your task is to implement a Trie data structure with on
5351
### Requirements
5452

5553
1. Create a class called `Trie`.
56-
5754
2. Implement an `insert(word)` method that takes a string `word` and inserts it into the Trie.
5855

5956
### More details
6057

6158
1. **Initialization**: You'll begin with a root node. This node will be the starting point for all word insertions, and it won't store any character itself.
62-
6359
2. **Traversal**: For each character in the word you want to insert, you'll traverse the Trie from the root node, going as far down as the current character sequence allows.
64-
6560
3. **Node Creation**: If a character in the word doesn't match any child node of the current node:
6661

6762
- Create a new node for that character.

0 commit comments

Comments
 (0)