Find the maximum or minimum of N elements in a collection

Find the maximum or minimum in a set of N elements, the two functions --nlargest () and nsmallest () heapq module
https://blog.csdn.net/qq_37119902/article/details/79471521
Collections. Counter statistics can
https://blog.csdn.net/qwe1257/article/details/83272340

Published 12 original articles · won praise 0 · Views 473

Guess you like

Origin blog.csdn.net/s1421578048/article/details/104222412