Implement most basic algorithms in Swift. Help myself and others.
使用 Swift 实现大多数基础算法,帮助我重温,也帮助他人学习。
1. Sort Algorithms : 排序算法
- Insertion Sort : 插入排序
- Simple Insertion Sort : 简单插入排序
- Shell Sort : 希尔排序
- Exchange Sort : 交换排序
- Bubble Sort : 冒泡排序
- Quicksort : 快速排序
- Selection Sort : 选择排序
- Simple Selection Sort : 简单选择排序
- Heap Sort : 堆排序
- Merge Sort : 归并排序
- Counting Sort : 计数排序
- Radix Sort : 基数排序
- Bucket Sort : 桶排序