会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
首页
管理
2016年10月30日
python 内置速度最快算法(堆排)
摘要: import random import time from heapq import heappush, heappop def heapsort(iterable): h = [] for value in iterable: heappush(h, value) return [heappop(h) for i in range(len(h))] ...
阅读全文
posted @ 2016-10-30 18:19 我当道士那儿些年
阅读(752)
评论(0)
推荐(1)
编辑
公告