-
Notifications
You must be signed in to change notification settings - Fork 115
Panic in Delete #29
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
Comments
i get the same issue in this code i'm trying to implement a kind of MFU cache i'm using the KCounter where the KCounter.value is the frequency of the KCounter.key the tree holds only N keys with the highest frequency , when there is no more room left the key with the minimal frequency will be dropped
this result in
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've ran into a case where the delete code path appears to panic within the llrb package:
It seems that
moveRedRight
requires both the left and right children to exist https://github.com/petar/GoLLRB/blob/master/llrb/llrb.go#L432, but here only the right child is tested https://github.com/petar/GoLLRB/blob/master/llrb/llrb.go#L359-L362?The text was updated successfully, but these errors were encountered: