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.
This task has a solution that works for a constant time and it's realy simple. I'm surprised that not many people got it.
There is no need to cast integers to floats. Just use Int32.MinValue and Int32.MaxValue instead of infinity.
This solution has complexity O(n * m). The better way is to calculate min and max values of both arrays and find their differences which will give us O(n + m).