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 comment is hidden because it contains spoiler information about the solution
.abs() is not necessary in last line since min2 may be greater than max1 but then max2 will defenitely also be greater than min1 and the max expression will return (max2-min1) which is positive (or vice versa).
Still i like this solution best, well done!
thrice in my benchmark. it operates inplace
There is an itertool maxmin method. I'd save for the fold
Is this solution really twice faster than approach with iterators?