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.
A valid ip but not in this kata
It really can be just in one row))
i am confused, kata was with regex tag, so i am avoided this solution
That moment when you spend 30 minutes thinking about all the cases and then you see this :))
bruh
Okay, weird, because it was the first solution I tried and it errored out on the 0.0.0.0 test case so I went way off board with a worstCase if solution. :D
I also added IPV4 only flag and it didn't make a difference.
It worked just fine for me.
This solution doesn't currently work.
#igormomc @igormomc Good answer man
Omg!!! I'm so stupid(((((((((
IPv6 is still a valid IP ;)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It probably means that your solution doesn't work with integer string values as described in the problem description. Your solution returns [1.0, 2.0, 3.0] for parameter array ["1", "2", "3"] whereas it should return [1, 2, 3]. The test set seems to be a bit lacking as they are not testing this case.
Loading more items...