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.
yes but ruby probably created like 1 million objects under the hood which is why this is the slowest lol
Well I'll be damned...
seriously!? :)
This comment is hidden because it contains spoiler information about the solution
omg I tot it will only remove the first instance of the element it found! Didn't realise it will remove all element...
At first I was like "that can't be it", then I remember that Ruby loves us <3
LOL, love ruby
O(m+n) is not a valid big-O time. This solution is O(n).
<3 Ruby!
I wonder what the space-time complexity of this solution is. My guess is O(m+n), but not too sure.
(╬ ಠ益ಠ)
Ahahaha are u kidding me? I love ruby now
Yeah, for a 6 kyu kata I was expecting something slightly more involved
The power of ruby, very nice!!!
Well I feel really dumb
Loving Ruby!
Loading more items...