Skip to content

Fix radix tree crashes on empty strings - #15673

Open
idpfaff wants to merge 1 commit into
TheAlgorithms:masterfrom
idpfaff:fix/radix-tree-empty-string
Open

idpfaff wants to merge 1 commit into
TheAlgorithms:masterfrom
idpfaff:fix/radix-tree-empty-string

Conversation

@idpfaff

@idpfaff idpfaff commented Oct 30, 2026

Copy link
Copy Markdown

Describe your change

  • Fix a bug or typo in an existing algorithm?

Inserting an empty string works, but looking it up or deleting it crashes. This fixes both and keeps the other words in the tree.

Resubmits #15672 with the checkbox marked.

Checklist

  • I have read CONTRIBUTING.md.
  • This PR only changes one algorithm file.
  • Existing doctests and unit tests pass.

Seven separate regression checks also pass. Full CI still needs to run.

@algorithms-keeper algorithms-keeper Bot added awaiting reviews This PR is ready to be reviewed enhancement This PR modified some existing files labels Oct 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviews This PR is ready to be reviewed enhancement This PR modified some existing files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant