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.
For correctness. Avoids altering the numbers argument which could impact tests
But it isn't how it looks, it's about time complexity. This function fail.
Added
No fixed tests in Elixir
this functions fails if the numbers array contains strings, null, undefined, or other non-numeric values
first time mine looks better than top one XD!
low amount of lines but time complexity higher than mine :P
Thanks, I´m blind sometimes...
It seems you still don't get it. Change back the function's name from
has_subpattern
to the originalformat_money
.Don't change the function's name, it should be
format_money
, this is the initial code:You've changed it to
has_subpattern
and the tests can't find it with that name.I´m getting cannot import name 'format_money' in test.But locale imported. On my IDE all fine.
Enabled in this fork
the sorting approach is too much extra work.
good
Loading more items...