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.
'A'.ord has a value of 65 and if you subtract 64 it will be 1
goddamn that's so smart in its simplicity that now I feel like a muppet
my respect for you. intelligent solution
good job
No regex solution.
This comment is hidden because it contains spoiler information about the solution
Genius!
Made with both simplicity and naming convention in mind, I'm aware that it shouldn't have that long line for the
smiley_valid?
method.I like this one better, not because it's easier to read and understand. I like the fact that it doesn't use regex, so it's easier to maintain. Even though, this snippet can be simplified a lot.
Not surprised that the best solution contains a regex.
Would be good to know what that
64
is.it doesn't work for 100, 200 etc