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.
this method is taking negative numbers too
It's doesn't pass the test.
So short
thank yoooou i couldn't get map to work, I see now i just needed to set questions equal to the new mapped array
Regex is adding unnecessary overhead here
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I agree with your statement here, especially when it comes to error handling (although it's not specified in this kata).
The one line solution seems alot more clean and cool but it's definitely not best practice. Thanks for breaking each section down to the nitty gritty.
Peter Parker
Very nice but it returns Infinity for empty recipe list. The reduce() method does not execute the function for empty array elements.
I think this is an underrated concern...
But isnt this for a recipe calculation? There's never going to be 100k + ingredients to compare, or whatever you would need for that to make a difference?
nice :D
Loading more items...