-
Notifications
You must be signed in to change notification settings - Fork 497
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
Added Trie [Go] #551
Added Trie [Go] #551
Conversation
Hi! Thanks for showing interest in contributing to this repository. Please make sure that you have ticked the points mentioned in PR description correctly. Thanks again! |
Comment on 9676605, file trie/trie.go, line 7. exported const AlphabetSize should have comment or be unexported Origin: GoLintBear, Section: |
trie/trie.go
Outdated
} | ||
|
||
// put returns a pointer to a node (representing a subtrie) | ||
func put(nnode *node, key []byte, value string, d int) *node { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename nnode
and d
variables to some informative names.
trie/trie.go
Outdated
// and this array will have the size of the alphabet. | ||
// Setting to a smaller size (in allowed alphabet) will | ||
// lower the space needed for the trie | ||
const AlphabetSize int = 256 // bytesize |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please avoid inline comments.
Fixes #546
By submitting this pull request I confirm I've read and complied with the below declarations.
Added {Algorithm/DS name} [{Language}]
, notUpdate README.md
orAdded new code
.