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.
Only after I started working on algorithm problems did I begin to appreciate the efficiency of standard loops over built-in array methods. For very large data processing there are some cases where your solution works and the ones built on array methods fail. Nice work!
So efficient, so clear!
I really like this solution because it reflects how one might sort through the coins in a real life situation.
This one rattled my mind for days! I wanted to solve with no consultations on the problem. This led me to a brute force approach which, predictably, failed for lack of time and resources. Then I looked a bit for hints and came across Warnsdorrf's rule. Things turned around quickly! So, my only suggestion on this kata would be to hint that this requires a strong grasp on solving with algorithms and heuristics, which we might need to research.
I didn't even think to use the spread operator to handle a variety of cases, such as strings, numbers, and arrays of numbers in this way. It's so much more useful and versatile than I thought. Thanks for showing me something new. 😀
Floored by this! A proper use of RegEx, in my view.
This comment is hidden because it contains spoiler information about the solution
It can return any falsy value (0, '', etc), not only false
Quite clever! I thought a ternary operator necessarily begins with an evaluation only, but it seems this ternary starts with a reassignment of the variable argument (the array) that evaluates to something truthy or falsey. But I don't immediately see how it could return false.
Thank you.
Simple and understandable. Very nice.
Wow!
Very elegant code. Nicely done!
This comment is hidden because it contains spoiler information about the solution
Wow! Great use of spread operator. Upvote.
Loading more items...