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

Add linear solution for day2 - no division. #958

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dalmirdasilva
Copy link

Hey, I appreciate your solutions in golang.

Here a small contribution.

The solution populates the product from 0 up to the ith. Then, on a second round, it computes the product from len - 1 to the ith element and and multiplies to the product previously calculated.

Thanks,

@coveralls
Copy link

coveralls commented Jan 20, 2021

Pull Request Test Coverage Report for Build 1789

  • 21 of 21 (100.0%) changed or added relevant lines in 2 files are covered.
  • 8 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.06%) to 99.77%

Files with Coverage Reduction New Missed Lines %
day255/problem.go 2 94.29%
day329/problem.go 6 86.96%
Totals Coverage Status
Change from base Build 1787: -0.06%
Covered Lines: 12603
Relevant Lines: 12632

💛 - Coveralls

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

Successfully merging this pull request may close these issues.

None yet

2 participants