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.
Ahh, I forgot about
slice_when
. Really nice solution!This would have been nice to know going in. I wound up with these numbers hard-coded based on test cases and had no idea why.
I'll advocate removing the tests for invalid values. If that occurs, it's a bug in the calling code, not the lib. I think the lib should assume valid behaviour, or possibly raise specific errors, but definitely not mask the bug by returning
false
The Ruby setup is syntactically invalid, and Ruby's predicate is a suffix of
?
rather than a prefix ofis_
, hence:Other than that, nice kata :)
Explanation of some of the subler parts: https://twitter.com/josh_cheek/status/1023789398792568832
This comment is hidden because it contains spoiler information about the solution
The site would be much more engaging for me if I had a sense of progress. As a reference, see Project Euler's "progress" page, which shows me the last 25 that I worked on, and shows me all the problems that I have and haven't solved, so I can back in and try to fill in the gaps. Currently, I often feel like I somehow happen to arrive at a problem, with no real sense of how I got to it, how to find it again, where it's at in the sea of other problems, etc.