Structure of a Trie
This lesson covers the structure of the Trie class in JavaScript.
We'll cover the following...
Introduction #
In this lesson, we will take a look at the basic structure of a trie and then build a class in JavaScript based on what we’ve studied.
Trie containing "top", "thus" and "their".
The Trie Node Class #
The Trie node represents one alphabet, which keeps pointers to its children nodes. For ...