Sunday, February 4, 2007

Python nlargest

Use heapq.nlargest to efficiently find the top-n elements of a list

No comments: