feat: speed violence and momentumn are happening

This commit is contained in:
mpaulson 2022-07-19 20:11:49 -06:00
parent b6bc2a63b1
commit 44bdb7177f
15 changed files with 248 additions and 18 deletions

23
src/__tests__/Trie.ts Normal file
View file

@ -0,0 +1,23 @@
import Trie from "@code/Trie";
test("Trie", function() {
const trie = new Trie();
trie.insert("foo");
trie.insert("fool");
trie.insert("foolish");
trie.insert("bar");
expect(trie.find("fo").sort()).toEqual([
"foo",
"fool",
"foolish",
]);
trie.remove("fool");
expect(trie.find("fo").sort()).toEqual([
"foo",
"foolish",
]);
});