Skip to content
This repository was archived by the owner on Mar 24, 2020. It is now read-only.

Conversation

@jdfree
Copy link

@jdfree jdfree commented Mar 11, 2015

I believe I've implemented what was requested here. There was no guideline as to how to handle invalid data in the input file, so I assumed that it should be ignored pending a requirement. I tried to keep everything simple and straightforward.

Ready for review.

Copy link
Author

Choose a reason for hiding this comment

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

I don't think reduce would be called if there were zero values, but divide-by-zero is a nasty condition, so I check for it anyway.

Copy link
Author

Choose a reason for hiding this comment

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

I didn't use guava, so no need to explicitly include it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant