Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two Bug ! #32

Open
guoxiangCN opened this issue Sep 4, 2022 · 0 comments
Open

Two Bug ! #32

guoxiangCN opened this issue Sep 4, 2022 · 0 comments

Comments

@guoxiangCN
Copy link

guoxiangCN commented Sep 4, 2022

bug1: add duplicated key into the trie will incr the size but the key was replaced.
bug2: the meta was not store in the node of last character of key but the new child with val=0x00
`

trie.Add("apple\x00p1", "1") // key contains 0
trie.Add("apple\x00p2", "1") // key contains 0
trie.Add("apple", "1") // after apple inserted, the above 2 keys are dispear.

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant