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.
OP solved it, closing!
.
That's what it means they overlap and become a single interval from 1 to 5.
Anyway, why does it says "Since
[1, 4]
and[3, 5]
is overlap"?Hi, I'm a bit confused about the example on overlapping interval. I thought the sum would be 8 but it said 7 instead. Am I missing something?
You're misreading the error messages. It says
expected <actual> to deeply equal <expected>
, where<actual>
is the value returned from your function and<expected>
is the value it should have returned instead.Your solution is incorrect - not a kata issue.
Check out the official documentation on troubleshooting: https://docs.codewars.com/training/troubleshooting
It has everything you need to know to make you almost working solutions actually work.
And no, you should not drop solution code in the discourse.
Hi, I don't know what's wrong with my code. I've passed the SampleTest but I can't pass the RandomTest, I don't know what's wrong. Anyway, should I drop my code in here?
Nice unicode-based chess kata ^^
Oh okay then, thank you so much for the reply :-)
No, by reading the description it seems it should be opposite: return
true
if king is threatened, and returnfalse
if king is safe.Hi, thanks for answering my question. So it means that if the king "is under attack" then return false, and return true for the opposite. Am I correct?
It more or less means "is king under attack". Im afraid you will have to research on chess a bit to figure out how to determine whether a chess piece is under attack or not.
hi, i'm a bit confused with this challenge. What does "King in check" mean? I'm not a chess player anyway :-)