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.
.
Your solution has a bug, it fails for some very specific inputs. It even fails example tests, which you can see and inspect.
Your solution being buggy is not a kata issue.
Your solution thinks that
12
isCC
, but it should be0C
.In C, upper range of random tests is chosen to not overflow correct solutions.
If your solution overflows, it's most probably because it's buggy.
We don't know, we can't see your solution.
.... but what is the suggestion?
Your solution has a very, very serious performance problem. Testing a single value of
2_000_000_000
makes it time out. Yourfor
loop needs fixing, because the way it is now, it works terribly slowly.I would consider a solution which loops a billion times buggy, and not a kata issue.
Why is this a kata issue? Maybe your solution is too slow or falls into some infinite loop?
What is your solution tho
AFAIK a contracted IPv6 form has no
:::
, the only contracted form is two colons, isnt it?https://en.wikipedia.org/wiki/IPv6_address#Representation
Unless you mean the validation part and using
:::
as invalid input?No random tests, no failure messages, sample teats are just the example stub, and using obsolete Scala 2 features - rejecting.
Feel free ro fork, fix, and republish.
top level, non-member functions are a feature of Scala 3
Whats your problem man, why does code of a random person make you so angry?
This part is tricky: what if the next monday does not have the time part of the input date?
Calendars are strange.
merged
Loading more items...