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.
Why didn't i thought of using switch...
bruh
nice
why is it 1 and not 0, -1?
This comment is hidden because it contains spoiler information about the solution
list comprehension is goated!!
amazing
@manchee: Your Linq solution is slower than molasses. Your code takes nearly three times as long to execute as the code you're criticizing. Hell, my plain-jane code is more than 1.5 times faster than yours. Are you saying your slow code would pass and OP's (or mine, which uses zero Linq) wouldn't?
I wouldn't wanna work anywhere that passes slow code vs fast. It's not a minor difference in speed, it's NEARLY A FACTOR OF 3!
It's like if your code and OP's were racing around a track. His code would go around nearly 3 times before yours went around once.
Show me anywhere that would choose your code over OP's...
how??
Actually clever, damn.
I replaced the
[]
literal byInt[]
, this should have fixed the issueI know it has been 8 years and you're probably very aged now compared to the time you wrote this comment. In case you're still somehow openeing codewars still I would like to ask what book did you learn from, supposing you already learnt it since it has been alot of time.
great
OMG!! I'll stop coding for one week ok.... don't ask me why
Fixed.
Loading more items...