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

Added Trie [Go] #551

Merged
merged 7 commits into from
Oct 21, 2017
Merged

Added Trie [Go] #551

merged 7 commits into from
Oct 21, 2017

Conversation

praffn
Copy link
Contributor

@praffn praffn commented Oct 19, 2017

Fixes #546

By submitting this pull request I confirm I've read and complied with the below declarations.

  • I have read the Contribution guidelines and I am confident that my PR reflects them.
  • I have followed the coding guidelines for this project.
  • My code follows the skeleton code structure.
  • This pull request has a descriptive title. For example, Added {Algorithm/DS name} [{Language}], not Update README.md or Added new code.
  • This pull request will be closed if I fail to update it even once in a continuous time span of 7 days.

@singhpratyush
Copy link
Member

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!

@singhpratyush
Copy link
Member

Comment on 9676605, file trie/trie.go, line 7.

exported const AlphabetSize should have comment or be unexported

Origin: GoLintBear, Section: golint.

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 {
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please avoid inline comments.

@singhpratyush singhpratyush merged commit 08c1203 into iiitv:master Oct 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trie [Go]
3 participants