摘要: 博客地址:https://www.cnblogs.com/zylyehuo/ # -*- coding: utf-8 -*- import random def bucket_sort(li, n=100, max_num=10000): buckets = [[] for _ in range(n 阅读全文
posted @ 2023-08-15 10:34 zylyehuo 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 博客地址:https://www.cnblogs.com/zylyehuo/ # _*_coding:utf-8_*_ import random def count_sort(li, max_count=100): count = [0 for _ in range(max_count + 1)] 阅读全文
posted @ 2023-08-15 10:26 zylyehuo 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 博客地址:https://www.cnblogs.com/zylyehuo/ # _*_coding:utf-8_*_ import random def insert_sort_gap(li, gap): for i in range(gap, len(li)): # i 表示摸到的牌的下标 tm 阅读全文
posted @ 2023-08-15 10:05 zylyehuo 阅读(5) 评论(0) 推荐(0) 编辑