- 博客(2)
- 收藏
- 关注
原创 Python 排序1
冒泡排序(buble sort)import timefrom random import randintimport matplotlib.pyplot as plt%matplotlib inline def _bubble_sort(nums:list,reverse = False): start = time.time() for i in range(...
2020-02-29 17:50:21
116
原创 Python 查找算法
递归查找def bi_search_re(num_list,val): def bi_search(l, h): if(l > h): return -1 mid = (l + h) // 2 if(num_list[mid] == val): return mid ; ...
2020-02-29 17:39:43
116
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人