vaskoz / dailycodingproblem-go

problems from dailycodingproblem.com solved in Go
MIT License
95 stars 31 forks source link

Add linear solution for day2 - no division. #958

Open dalmirdasilva opened 3 years ago

dalmirdasilva commented 3 years ago

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 commented 3 years ago

Pull Request Test Coverage Report for Build 1789


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

💛 - Coveralls