Toggle navigation
Sunday Blog
All Posts
go
kubernetes
linux
python
ARCHIVE
DOCS
ABOUT
Sunday Blog
人生是一场刻意练习
选择排序算法
Selection Sort
每次找到最小元素索引 交换两个索引位置 重复前面的步骤,直到排序完成 def selectSort(nums): length=len(nums) for i in range(length-1): min_idx=i # 假定i为最小值 for j in range(i+1,length): # 第二位与前一位对比 if nums[j] < nums[min_idx]: min_idx=j #得到
Posted by BlueFat on Thursday, August 11, 2022
开心的蓝胖
QUICK LINKS
Pxhere
unsplash
FEATURED TAGS
ansible
bash
calico
containerd
docker
firewalld
flannel
grpc
https
iptables
keepalived
kernel
kubernetes
linux
lvs
mysql
network
nginx
prometheus
python
rabbitmq
rocketmq
shell
sort
ssh
tcp
tcpdump
ubuntu
ufw
性能
排序
正则表达式
算法
递归
闭包
FRIENDS
Sunday Docs
Ansible Wiki
K8S训练营
Kubernetes 实践指南