Skip to content

Fixes #3136 The deleteString function was unconditionally resetting child pointers, corrupting words that share prefixes. Fixed by only pruning nodes when they have no children and are not the end of another word. Added a hasChildren() helper method and regression tests.#3142

Open
ckprojects77 wants to merge 1 commit into
TheAlgorithms:masterfrom
ckprojects77:master

Commits

Commits on May 12, 2026