Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I like your solution best (dunno if it's most idiomatic, being Elixir newbie myself), it's most readable and goes the farthest (along with
g964
's) before it hits some Erlang integer minimum (namely,-1.797e+308
) when calculating the partial sum (according to my naive test set):Interestingly enough, the solution using
Stream
gives up some~500
years earlier :) (probably due to the suboptimal interest rate calculation)