MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / removeWordHelper

Method removeWordHelper

data_structures/trie_modern.cpp:64–99  ·  view source on GitHub ↗

* A recursive helper function to remove a word from the trie. First, it * recursively traverses to the location of last character of word in the * trie. However, if the word is not found, the function returns a runtime * error. Upon successfully reaching the last character of word in trie, if * sets the isEndOfWord to false and deletes the node if and only if it has * no c

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected