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.
condition is not correct. meaning touching or crossing. the condition says only about touch
colliding
it is likely to be interpreted astouching
by some users. Why not use the more specific and mathematically correct termintersecting
?The intersection can be one or more points, it covers any scenario, from touching to full overlapping.
C# random tests are not guaranteed to fail this qwerty solution and this almost identical one.
Description is a bit iffy.
It took me some time to understand that with 'collision' was really meant 'touching/colliding OR overlapping'. It's not the same, imho.
Maybe it's just me. No one else seems to have a problem with that.
Added bash translation:
bash translation
please review
nice simple geometry kata. I like it.
seems to be approved
You should mark it as a suggestion to improve visibility.
COBOL translation, please review carefully.
Added bash translation:
https://www.codewars.com/kumite/616e9898dc436f003fbbff6f?sel=616e9898dc436f003fbbff6f
This is a good idea for a series of Kata, from simplest - collision of two circles, to hardest - general collision of two arbitrarily shaped bodies in 3d.
They're equivalent in the mathematical sense, but not in the floating-point sense. This is a permanent problem with floating point numbers.
for example, if
(r1 + r2)
is really small, the precision of its product(r1 + r2) * (r1 + r2)
is going to be bad ... so it's better to avoid multiplications if you can in a formula like this(i didnt look at the JS translation so it's just my guess)
This comment is hidden because it contains spoiler information about the solution
Added Swift translation
https://www.codewars.com/kumite/5fe648baa9db030026cc0987?sel=5fe648baa9db030026cc0987
Loading more items...