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.
you should not round at all, you lose accuracy by rounding
you can use value ? func1() : func2(); instead of value == true ? func1() : func2();
becouse the value it's already boolean and you don't need to check it.
Zombie fighters in C++ confirmed.
You know what is worse than zombie fighters?
5 months in and still no fix...
Goodbye CodeWars, it was fun.
C++
In which language? Can you give me more info?
Thank you,too!
Precisely; getting senile, ops!
Fixed, thanks!!
Might be an issue with the C++ too? See above.
The first can be explained: d= -3 => missing= 8
Others...I don't know how to understand them as a correct arithmetic sequence, even if I sort them first...
@marbiru Original list with only two numbers can happen, but only when the difference and therefore the missing number are also integers,because long type is an integer type,which can't store floating point numbers.
For example, it can happen: [1,5] => d=2 => missing= 3
but it shouldn't happen in this kata: [1,4] => d=1.5 => missing= 2.5
This comment is hidden because it contains spoiler information about the solution
This one was good,thanks.
It should be 6 kyu, I think.Because of the math trick, we should use to avoid the number type overflow in cases of big numbers.
Loading more items...