Perf: re-implement trie using Map

This commit is contained in:
SukkaW
2024-01-21 23:18:38 +08:00
parent 8a0eb0b66f
commit 11e687cd56
2 changed files with 55 additions and 55 deletions

View File

@@ -56,7 +56,7 @@ describe('Trie', () => {
expect(trie.delete('rate')).toBeTrue();
expect(trie.size).toBe(1);
expect(trie.delete('tar')).toBe(true);
expect(trie.delete('tar')).toBeTrue();
expect(trie.size).toBe(0);
});