All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- add types to package.json
- readme.
isLeaf()
to TrieNode: leaf is a node that has no children.
isLeaf()
to TrieNode: leaf is a node that has no children.
-
remove(word)
two edge cases that were not covered:- the case when removing a word that does not exist, count should not change.
- the case when another word overlaps with the word being deleted, it was removing all the word chars regardless if one char is an end of another word.
Credit: 王悠悠 https://github.com/anson09
- index.d.ts
- typescript.
- README
.insert
can be chained..remove
now returns the removed word.- better handling for null & undefined.
.fromArray
static function to convert a list into a trie.
- jsdoc
- README
- jsdoc
- README
- renamed
.getWordsCount()
&.getNodesCount()
to.wordsCount()
&.nodesCount()
.
- README
- jsdoc
- new implementation and interface