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.
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.
No, by reading the description it seems it should be opposite: return
true
if king is threatened, and returnfalse
if king is safe.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.