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.
Many people write:
FYI, There is no trickery to this Kata. It is just a matter of visualising the balls in a certain way -- think about equalateral triangles. When/if you understand what to do, the maths is very easy -- that is why it is only 7kyu.
Am i crazy ? how is it possible to calculate this if we dont know how much the ball is overlapping the next layer ? it looks like 1/3 but my code that use 1/3 causes error. So i'll just give, cause i cant figure out how much is the overlapping, if someone could help i would appreciate.
True, but i thought it was the same cause a empty string in c++ only have the null terminator "\0". Also i thought it should return false since there is nothing to compare.
Noooo, i wasn't suppose to submit i was still refactoring the code it was a missclick ðŸ˜.
nil or null or None is not the same as empty.
" If a or b are nil (or null or None, depending on the language), the problem doesn't make sense so return false. "
That line just cost me 100 hours of debugging because i thought that when the A and B vectors were empty it should return false.
I was having the same problem you saved me a lot of time.
Pls, can you show me a method that dont use brute force ?
you could launch a falcon 9 with this code
Hahahah you made my day