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.
jurassic park quote confirmed?
doesn't this change the original array?
just a little smaller but sill super cool
Clever girl!
Why was this kata broken off from the other Count IP addresses kata? Why is it labeled as Ruby only? This looks to be a duplicate.
Added Haskell translation
Whoops, you're right. I had misread the intention of this section when writing this kata: RFC 6052 Section 2.2 https://tools.ietf.org/html/rfc6052#section-2.2
RFC 4291 Section 2.2 describes the 32 bits rule: https://tools.ietf.org/html/rfc4291#section-2.2
I've removed the invalid test case.
2002::150.0.0.1:2
and2002::150.0.0.1:1
are not valid IPv6 numbers, only final 32 bits of IPv6 addres can be IPv4 style dotted quad.Try using foldr and without reimplementing reverse - it's tricky, but loads of fun!
Returning
nil
from a method which clearly should return eitherfalse
ortrue
can lead to bugs. E.g.alphanumeric?(s) == false
wouldn't work as expected.you like difficult ways, don`t you?
when the url is "http://www.china.com.cn", what do you think you will get?
the answer is
com
, so this answer is not reliable.Was a wrong test-case, fixed (better late than never)
Very nice.
oh....
Loading more items...