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.
Codewars is misspelled in the problem name. I recommend removing it, renaming the kata as "Distance between moving ships".
I would recommend the even simpler approach of returning -1.
+1: sin, cos, and pi should be defined in the tests, rather than requiring the user to define them.
What is the minimum time complexity for this problem? Most of the solutions seem to obtain results in O(N^3).
return False should not be an acceptable solution, which it is some of the time. Correct code must also evaluate walk=['n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n'] as False, a case which many incorrect solutions evaluate as True.
This comment is hidden because it contains spoiler information about the solution