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.
This comment is hidden because it contains spoiler information about the solution
kolo da£ rade
Thanks for helping me out. I'll try that exercise.
Not an issue, your code is wrong.
Hint: You said
I've tried 10000centuries as mention above
, how many years are there in the 10,000th century?Also,
The expression (centuryFromYear(year)) == (expected) is false.
is not an issue, it is part of codewars. Try returning a wrong value for Multiply in C (in case it is what you meant).This comment is hidden because it contains spoiler information about the solution
@salten .. Well ..
My random tests fails.
Random test tells me this:
The expression (centuryFromYear(year)) == (expected) is false.
What does it mean?
I've tried 10000centuries as mention above from another people but It doesn't work.
Wow
HAHA
This error stems from vectors having only 1 element or empty vectors. In that case numbers[1] has no meaning.
I have been trying the same solution, but have error: "Process exited prematurely with a SIGSEGV signal.". Why your solution have been accepted but mine not. How it could be acceptable without chacking empty vector and 1 sized vector?
dat bruteforce doe