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.
Upvote for the unparalleled dedication
Best codewars solution I've seen so far! Congratulations!
@alexandersmanning said it totally right...furthermore in this thing look for your loop condition..you don't need to loop it for n..1 just half n/2..1 is enough for the solution. I hope this will help you out.
Great solution.......i liked it.
more on we can use collect rather use map second time like:
nums = numbers.split.map(&:to_i).collect {|x| x.even?}
Thanks you....!!
There must be a condition on very first part to check if n is non-zero or not. if non-zero then return it from there no need to go inside with non-zero.
Without this code is fine but seems applying condition would be appropriate THINK!!!!!!!!!!