# HG changeset patch # User Teemu Piippo # Date 1537957042 -10800 # Node ID f5ba81a7d86e2b725e04807fc91c1e7e6ffe7c8b # Parent 7a55abeab5fd06d19b19d04901850483238bd186 added comment diff -r 7a55abeab5fd -r f5ba81a7d86e compute-regions.py --- a/compute-regions.py Wed Sep 26 13:12:11 2018 +0300 +++ b/compute-regions.py Wed Sep 26 13:17:22 2018 +0300 @@ -29,6 +29,7 @@ def minmax(data): ''' + From: http://code.activestate.com/recipes/577916-fast-minmax-function/ Computes the minimum and maximum values in one-pass using only 1.5*len(data) comparisons '''