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 have completed this kata in Ruby twice already more than one month ago,
but it is placed in my "not trained on" list. Why?
if input.length < 4 is better.
No needs .to_a .
Please, add check for empty string to test cases (Ruby).
IMHO, if distances will be integer, the problems will be in integer division with '/'.
fdiv is better for use.
I have completed this kata twice already on Ruby, but it is marked as "not trained on" over 5 days. Please correct it.
No, this kata is remaining as "not trained on" in my katas list at present.
It is a curious :) Сan you to correct this?
Probably some lag, the server needs time to get updated (I guess).
I have completed this kata already twice (Ruby), but it is marked as "not trained on" in my katas list.
Why?
O(1) is much better than O(n), good job all!
It's a tossup about whether to divide by 2 and then square or to square and then divide by 4. Since Ruby doesn't overflow, I picked the latter.
I took look at your code and the monkey patching of
Array#size
breaks things. There are some comments below on how to handle to the length issue.I got following error in this kata:
/usr/local/lib/ruby/2.5.0/net/protocol.rb:44:in
connect_nonblock': SSL_connect returned=1 errno=0 state=error: certificate verify failed (unspecified certificate verification error) (OpenSSL::SSL::SSLError)