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'd vote for this solution as a Cleverest one if 888855064897 was close to the maximum value of bigint 9223372036854775807. But now it's just a hack not a solution.
Each of them going to be false and true sometimes. When the condition return true or false, even it return true fullfilling the condition.
This comment is hidden because it contains spoiler information about the solution
cool, very best pratice
This comment is hidden because it contains spoiler information about the solution
Congratulations on passing all the tests, but the statement says to remove digits and characters from %$&/£?@ only.
It's nice and short, but not what I'd call "Best Practices".
This comment is hidden because it contains spoiler information about the solution
I enjoy the names you picked, and I like how you're adding to the score using boolean operators to find the correct frame type.
Wow! This is a beautiful solution. With some recursion isn't it? (In the play instance method)
I have difficulty to implement such approach because definitively you need to come back to lines to complete it unitl filling all the squares.
And recursion is a good way to do this.
Not having CS background can you tell me if this is what is called backtracking?
In my code proposal I used this false - true - false structure wrapped into a loop.
But yours is so much more clever and elegant.
Thx. Will keep a copy of it and work through it.
cheers
Definitely not best practice, but the most naive brute force solution...
SPOILER FLAG! DAMN YOU!!
This comment is hidden because it contains spoiler information about the solution
Great solution! Where is the 'no way' being used?
I learn so much reading solutions like this, after struggling through the ugly behemoth that is mine.
Also add Hash into the list of frozen classes.
Set
class is using Hash class under the hood.Loading more items...