Implementation: Linked Lists
Some ideas for how you might want to teach:
- Use an analogy
- Explain a detail in depth
- Use WHY, WHAT, HOW structure
- Tutorial / walk through an example
- Write a quiz
- Create a vocabulary/definition list
- Write a cheat sheet
- Create a diagram / visualization / cartoon of a topic
- Anthropomorphize the concepts, and write a conversation between them
- Build a map of the information
- Construct a fill-in-the-blank worksheet for the topic
Topic chosen to teach:
Linked Lists - WHY, WHAT, HOW
Why do we use Linked Lists?
Linked lists are efficient insertion and deletion. Linked lists are more efficient than arrays especially when dealing with memory alocation. The size for a linked list is not pre-defined allowing for dynamic data sizes. The linked lists can grow and shrink dynamically.
What is a linked List?
A linked list a data structure that stores a collection of ordered data that can only be accessed sequentially with the next, prev, and val properties.
How can we implement linked lists into our work flow?
const list = {
head: {
value: 'this is a string'
next: {
value: 10
next: {
value: 'another random string'
next: {
value: 3
next: null
}
}
}
}
}
};
Another example of linked lists, is the middleware used in express.