From d30d3f949ab4a1d1998cf23adcfafd00a114f515 Mon Sep 17 00:00:00 2001 From: Xu Shaohua Date: Wed, 3 Jul 2024 11:41:21 +0800 Subject: [PATCH] Move search/sort out of array/ --- src/SUMMARY.md | 58 +++++++++---------- src/array/search/assets/linear_search.rs | 1 - src/array/sort/assets/bubble_sort.rs | 1 - src/array/sort/assets/gnome_sort.rs | 1 - src/array/sort/assets/insertion_sort.rs | 1 - src/array/sort/assets/selection_sort.rs | 1 - src/array/sort/assets/shell_sort.rs | 1 - src/{list/sort => list-sort}/bubble-sort.md | 0 src/list-sort/index.md | 5 ++ .../sort => list-sort}/insertion-sort.md | 0 src/{list/sort => list-sort}/merge-sort.md | 0 .../sort => list-sort}/selection-sort.md | 0 src/list/sort/index.md | 1 - src/search/assets/linear_search.rs | 1 + .../search/binary-search-in-std.md | 0 src/{array => }/search/binary-search.md | 0 src/{array => }/search/exponential-search.md | 0 src/{array => }/search/index.md | 0 .../search/interpolation-search.md | 0 src/{array => }/search/jump-search.md | 0 src/{array => }/search/linear-search.md | 0 src/{array => }/search/ternary-search.md | 0 .../sort/assets/bubble-sort-pass1.drawio | 0 .../sort/assets/bubble-sort-pass1.svg | 0 .../sort/assets/bubble-sort-pass2.drawio | 0 .../sort/assets/bubble-sort-pass2.svg | 0 .../sort/assets/bubble-sort-pass3.drawio | 0 .../sort/assets/bubble-sort-pass3.svg | 0 src/sort/assets/bubble_sort.rs | 1 + .../sort/assets/gnome-sort-pass1.drawio | 0 .../sort/assets/gnome-sort-pass1.svg | 0 .../sort/assets/gnome-sort-pass2.drawio | 0 .../sort/assets/gnome-sort-pass2.svg | 0 .../sort/assets/gnome-sort-pass3.drawio | 0 .../sort/assets/gnome-sort-pass3.svg | 0 src/sort/assets/gnome_sort.rs | 1 + .../sort/assets/insertion-sort-pass1.drawio | 0 .../sort/assets/insertion-sort-pass1.svg | 0 .../sort/assets/insertion-sort-pass2.drawio | 0 .../sort/assets/insertion-sort-pass2.svg | 0 .../sort/assets/insertion-sort-pass3.drawio | 0 .../sort/assets/insertion-sort-pass3.svg | 0 src/sort/assets/insertion_sort.rs | 1 + .../sort/assets/selection-sort-pass1.drawio | 0 .../sort/assets/selection-sort-pass1.svg | 0 .../sort/assets/selection-sort-pass2.drawio | 0 .../sort/assets/selection-sort-pass2.svg | 0 .../sort/assets/selection-sort-pass3.drawio | 0 .../sort/assets/selection-sort-pass3.svg | 0 src/sort/assets/selection_sort.rs | 1 + src/sort/assets/shell_sort.rs | 1 + src/{array => }/sort/bubble-sort.md | 0 src/{array => }/sort/bucket-sort.md | 0 src/{array => }/sort/counting-sort.md | 0 src/{array => }/sort/dual-pivot-quick-sort.md | 0 src/{array => }/sort/gnome-sort.md | 0 src/{array => }/sort/heap-sort.md | 0 src/{array => }/sort/index.md | 0 src/{array => }/sort/insertion-sort.md | 0 src/{array => }/sort/merge-sort.md | 0 src/{array => }/sort/quick-select.md | 0 src/{array => }/sort/radix-sort.md | 0 src/{array => }/sort/selection-sort.md | 0 src/{array => }/sort/shell-sort.md | 0 src/{array => }/sort/sort-in-std.md | 0 65 files changed, 40 insertions(+), 36 deletions(-) delete mode 120000 src/array/search/assets/linear_search.rs delete mode 120000 src/array/sort/assets/bubble_sort.rs delete mode 120000 src/array/sort/assets/gnome_sort.rs delete mode 120000 src/array/sort/assets/insertion_sort.rs delete mode 120000 src/array/sort/assets/selection_sort.rs delete mode 120000 src/array/sort/assets/shell_sort.rs rename src/{list/sort => list-sort}/bubble-sort.md (100%) create mode 100644 src/list-sort/index.md rename src/{list/sort => list-sort}/insertion-sort.md (100%) rename src/{list/sort => list-sort}/merge-sort.md (100%) rename src/{list/sort => list-sort}/selection-sort.md (100%) delete mode 100644 src/list/sort/index.md create mode 120000 src/search/assets/linear_search.rs rename src/{array => }/search/binary-search-in-std.md (100%) rename src/{array => }/search/binary-search.md (100%) rename src/{array => }/search/exponential-search.md (100%) rename src/{array => }/search/index.md (100%) rename src/{array => }/search/interpolation-search.md (100%) rename src/{array => }/search/jump-search.md (100%) rename src/{array => }/search/linear-search.md (100%) rename src/{array => }/search/ternary-search.md (100%) rename src/{array => }/sort/assets/bubble-sort-pass1.drawio (100%) rename src/{array => }/sort/assets/bubble-sort-pass1.svg (100%) rename src/{array => }/sort/assets/bubble-sort-pass2.drawio (100%) rename src/{array => }/sort/assets/bubble-sort-pass2.svg (100%) rename src/{array => }/sort/assets/bubble-sort-pass3.drawio (100%) rename src/{array => }/sort/assets/bubble-sort-pass3.svg (100%) create mode 120000 src/sort/assets/bubble_sort.rs rename src/{array => }/sort/assets/gnome-sort-pass1.drawio (100%) rename src/{array => }/sort/assets/gnome-sort-pass1.svg (100%) rename src/{array => }/sort/assets/gnome-sort-pass2.drawio (100%) rename src/{array => }/sort/assets/gnome-sort-pass2.svg (100%) rename src/{array => }/sort/assets/gnome-sort-pass3.drawio (100%) rename src/{array => }/sort/assets/gnome-sort-pass3.svg (100%) create mode 120000 src/sort/assets/gnome_sort.rs rename src/{array => }/sort/assets/insertion-sort-pass1.drawio (100%) rename src/{array => }/sort/assets/insertion-sort-pass1.svg (100%) rename src/{array => }/sort/assets/insertion-sort-pass2.drawio (100%) rename src/{array => }/sort/assets/insertion-sort-pass2.svg (100%) rename src/{array => }/sort/assets/insertion-sort-pass3.drawio (100%) rename src/{array => }/sort/assets/insertion-sort-pass3.svg (100%) create mode 120000 src/sort/assets/insertion_sort.rs rename src/{array => }/sort/assets/selection-sort-pass1.drawio (100%) rename src/{array => }/sort/assets/selection-sort-pass1.svg (100%) rename src/{array => }/sort/assets/selection-sort-pass2.drawio (100%) rename src/{array => }/sort/assets/selection-sort-pass2.svg (100%) rename src/{array => }/sort/assets/selection-sort-pass3.drawio (100%) rename src/{array => }/sort/assets/selection-sort-pass3.svg (100%) create mode 120000 src/sort/assets/selection_sort.rs create mode 120000 src/sort/assets/shell_sort.rs rename src/{array => }/sort/bubble-sort.md (100%) rename src/{array => }/sort/bucket-sort.md (100%) rename src/{array => }/sort/counting-sort.md (100%) rename src/{array => }/sort/dual-pivot-quick-sort.md (100%) rename src/{array => }/sort/gnome-sort.md (100%) rename src/{array => }/sort/heap-sort.md (100%) rename src/{array => }/sort/index.md (100%) rename src/{array => }/sort/insertion-sort.md (100%) rename src/{array => }/sort/merge-sort.md (100%) rename src/{array => }/sort/quick-select.md (100%) rename src/{array => }/sort/radix-sort.md (100%) rename src/{array => }/sort/selection-sort.md (100%) rename src/{array => }/sort/shell-sort.md (100%) rename src/{array => }/sort/sort-in-std.md (100%) diff --git a/src/SUMMARY.md b/src/SUMMARY.md index fda7504ae..f33cfb95d 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -8,30 +8,6 @@ - [数组的基本操作](array/ops.md) - [反转数组](array/reverse.md) - [旋转数组](array/rotate.md) - - [排序 Sorting](array/sort/index.md) - - [冒泡排序 Bubble Sort](array/sort/bubble-sort.md) - - [插入排序 Insertion Sort](array/sort/insertion-sort.md) - - [选择排序 Selection Sort](array/sort/selection-sort.md) - - [归并排序 Merge Sort](array/sort/merge-sort.md) - - [Dual Pivot Quick Sort](array/sort/dual-pivot-quick-sort.md) - - [桶排序 Bucket Sort](array/sort/bucket-sort.md) - - [堆排序 Heap Sort](array/sort/heap-sort.md) - - [基数排序 Radix Sort](array/sort/radix-sort.md) - - [计数排序 Counting Sort](array/sort/counting-sort.md) - - [希尔排序 Shell Sort](array/sort/shell-sort.md) - - [侏儒排序 Gnome Sort](array/sort/gnome-sort.md) - - [快速选择 Quick Select](array/sort/quick-select.md) - - [排序相关的问题列表](leetcode/tags/sort.md) - - [标准库中排序算法的实现](array/sort/sort-in-std.md) - - [查找 Search](array/search/index.md) - - [线性查找 Linear Search](array/search/linear-search.md) - - [二分查找 Binary Search](array/search/binary-search.md) - - [二分查找相关的问题列表](leetcode/tags/binary-search.md) - - [三元查找 Ternary Search](array/search/ternary-search.md) - - [Jump Search](array/search/jump-search.md) - - [Interpolation Search](array/search/interpolation-search.md) - - [Exponential Search](array/search/exponential-search.md) - - [标准库中二分查找法的实现](array/search/binary-search-in-std.md) - [前缀和数组 Prefix Sum Array](array/prefix-sum-array.md) - [前缀和相关的问题列表](leetcode/tags/prefix-sum.md) - [后缀数组 Suffix Array](array/suffix-array.md) @@ -43,11 +19,6 @@ - [链表 List](list/index.md) - [单链表](list/single.md) - [双链表](list/double.md) - - [链表排序 Sort](list/sort/index.md) - - [冒泡排序 Bubble Sort](list/sort/bubble-sort.md) - - [插入排序 Insertion Sort](list/sort/insertion-sort.md) - - [选择排序 Selection Sort](list/sort/selection-sort.md) - - [归并排序 Merge Sort](list/sort/merge-sort.md) - [标准库中 List 的实现](list/impl-oflist.md) - [跳跃表 SkipList](list/skiplist/index.md) - [链表相关的问题列表](leetcode/tags/linked-list.md) @@ -93,6 +64,35 @@ - [算法分析 Analysis](algs-analysis/index.md) - [测试用的数据集](dataset/index.md) +- [排序 Sorting](sort/index.md) + - [冒泡排序 Bubble Sort](sort/bubble-sort.md) + - [插入排序 Insertion Sort](sort/insertion-sort.md) + - [选择排序 Selection Sort](sort/selection-sort.md) + - [归并排序 Merge Sort](sort/merge-sort.md) + - [Dual Pivot Quick Sort](sort/dual-pivot-quick-sort.md) + - [桶排序 Bucket Sort](sort/bucket-sort.md) + - [堆排序 Heap Sort](sort/heap-sort.md) + - [基数排序 Radix Sort](sort/radix-sort.md) + - [计数排序 Counting Sort](sort/counting-sort.md) + - [希尔排序 Shell Sort](sort/shell-sort.md) + - [侏儒排序 Gnome Sort](sort/gnome-sort.md) + - [快速选择 Quick Select](sort/quick-select.md) + - [排序相关的问题列表](leetcode/tags/sort.md) + - [标准库中排序算法的实现](sort/sort-in-std.md) +- [链表排序 List Sort](list-sort/index.md) + - [冒泡排序 Bubble Sort](list-sort/bubble-sort.md) + - [插入排序 Insertion Sort](list-sort/insertion-sort.md) + - [选择排序 Selection Sort](list-sort/selection-sort.md) + - [归并排序 Merge Sort](list-sort/merge-sort.md) +- [查找 Search](search/index.md) + - [线性查找 Linear Search](search/linear-search.md) + - [二分查找 Binary Search](search/binary-search.md) + - [二分查找相关的问题列表](leetcode/tags/binary-search.md) + - [三元查找 Ternary Search](search/ternary-search.md) + - [Jump Search](search/jump-search.md) + - [Interpolation Search](search/interpolation-search.md) + - [Exponential Search](search/exponential-search.md) + - [标准库中二分查找法的实现](search/binary-search-in-std.md) - [位运算 Bit Manipulation](bit-manipulation/index.md) - [对自己异或操作结果为0](bit-manipulation/self-xor.md) - [位运算相关的问题列表](leetcode/tags/bit-manipulation.md) diff --git a/src/array/search/assets/linear_search.rs b/src/array/search/assets/linear_search.rs deleted file mode 120000 index 6d10cbfe6..000000000 --- a/src/array/search/assets/linear_search.rs +++ /dev/null @@ -1 +0,0 @@ -../../../../search/src/linear_search.rs \ No newline at end of file diff --git a/src/array/sort/assets/bubble_sort.rs b/src/array/sort/assets/bubble_sort.rs deleted file mode 120000 index 8cb0081cf..000000000 --- a/src/array/sort/assets/bubble_sort.rs +++ /dev/null @@ -1 +0,0 @@ -../../../../sort/src/bubble_sort.rs \ No newline at end of file diff --git a/src/array/sort/assets/gnome_sort.rs b/src/array/sort/assets/gnome_sort.rs deleted file mode 120000 index ed6910f5e..000000000 --- a/src/array/sort/assets/gnome_sort.rs +++ /dev/null @@ -1 +0,0 @@ -../../../../sort/src/gnome_sort.rs \ No newline at end of file diff --git a/src/array/sort/assets/insertion_sort.rs b/src/array/sort/assets/insertion_sort.rs deleted file mode 120000 index 3942cb435..000000000 --- a/src/array/sort/assets/insertion_sort.rs +++ /dev/null @@ -1 +0,0 @@ -../../../../sort/src/insertion_sort.rs \ No newline at end of file diff --git a/src/array/sort/assets/selection_sort.rs b/src/array/sort/assets/selection_sort.rs deleted file mode 120000 index cc2037266..000000000 --- a/src/array/sort/assets/selection_sort.rs +++ /dev/null @@ -1 +0,0 @@ -../../../../sort/src/selection_sort.rs \ No newline at end of file diff --git a/src/array/sort/assets/shell_sort.rs b/src/array/sort/assets/shell_sort.rs deleted file mode 120000 index 86a380aa0..000000000 --- a/src/array/sort/assets/shell_sort.rs +++ /dev/null @@ -1 +0,0 @@ -../../../../sort/src/shell_sort.rs \ No newline at end of file diff --git a/src/list/sort/bubble-sort.md b/src/list-sort/bubble-sort.md similarity index 100% rename from src/list/sort/bubble-sort.md rename to src/list-sort/bubble-sort.md diff --git a/src/list-sort/index.md b/src/list-sort/index.md new file mode 100644 index 000000000..ad10f5a20 --- /dev/null +++ b/src/list-sort/index.md @@ -0,0 +1,5 @@ +# 链表排序 List Sort + +上一章介绍了数组的多种排序方法. 与数组不同的是, 链表结构不支持随机索引. + +对链表中的元素进行排序, 有它自己的特点. \ No newline at end of file diff --git a/src/list/sort/insertion-sort.md b/src/list-sort/insertion-sort.md similarity index 100% rename from src/list/sort/insertion-sort.md rename to src/list-sort/insertion-sort.md diff --git a/src/list/sort/merge-sort.md b/src/list-sort/merge-sort.md similarity index 100% rename from src/list/sort/merge-sort.md rename to src/list-sort/merge-sort.md diff --git a/src/list/sort/selection-sort.md b/src/list-sort/selection-sort.md similarity index 100% rename from src/list/sort/selection-sort.md rename to src/list-sort/selection-sort.md diff --git a/src/list/sort/index.md b/src/list/sort/index.md deleted file mode 100644 index 36c5761c4..000000000 --- a/src/list/sort/index.md +++ /dev/null @@ -1 +0,0 @@ -# 链表排序 Sort \ No newline at end of file diff --git a/src/search/assets/linear_search.rs b/src/search/assets/linear_search.rs new file mode 120000 index 000000000..fcb6aa05d --- /dev/null +++ b/src/search/assets/linear_search.rs @@ -0,0 +1 @@ +../../../search/src/linear_search.rs \ No newline at end of file diff --git a/src/array/search/binary-search-in-std.md b/src/search/binary-search-in-std.md similarity index 100% rename from src/array/search/binary-search-in-std.md rename to src/search/binary-search-in-std.md diff --git a/src/array/search/binary-search.md b/src/search/binary-search.md similarity index 100% rename from src/array/search/binary-search.md rename to src/search/binary-search.md diff --git a/src/array/search/exponential-search.md b/src/search/exponential-search.md similarity index 100% rename from src/array/search/exponential-search.md rename to src/search/exponential-search.md diff --git a/src/array/search/index.md b/src/search/index.md similarity index 100% rename from src/array/search/index.md rename to src/search/index.md diff --git a/src/array/search/interpolation-search.md b/src/search/interpolation-search.md similarity index 100% rename from src/array/search/interpolation-search.md rename to src/search/interpolation-search.md diff --git a/src/array/search/jump-search.md b/src/search/jump-search.md similarity index 100% rename from src/array/search/jump-search.md rename to src/search/jump-search.md diff --git a/src/array/search/linear-search.md b/src/search/linear-search.md similarity index 100% rename from src/array/search/linear-search.md rename to src/search/linear-search.md diff --git a/src/array/search/ternary-search.md b/src/search/ternary-search.md similarity index 100% rename from src/array/search/ternary-search.md rename to src/search/ternary-search.md diff --git a/src/array/sort/assets/bubble-sort-pass1.drawio b/src/sort/assets/bubble-sort-pass1.drawio similarity index 100% rename from src/array/sort/assets/bubble-sort-pass1.drawio rename to src/sort/assets/bubble-sort-pass1.drawio diff --git a/src/array/sort/assets/bubble-sort-pass1.svg b/src/sort/assets/bubble-sort-pass1.svg similarity index 100% rename from src/array/sort/assets/bubble-sort-pass1.svg rename to src/sort/assets/bubble-sort-pass1.svg diff --git a/src/array/sort/assets/bubble-sort-pass2.drawio b/src/sort/assets/bubble-sort-pass2.drawio similarity index 100% rename from src/array/sort/assets/bubble-sort-pass2.drawio rename to src/sort/assets/bubble-sort-pass2.drawio diff --git a/src/array/sort/assets/bubble-sort-pass2.svg b/src/sort/assets/bubble-sort-pass2.svg similarity index 100% rename from src/array/sort/assets/bubble-sort-pass2.svg rename to src/sort/assets/bubble-sort-pass2.svg diff --git a/src/array/sort/assets/bubble-sort-pass3.drawio b/src/sort/assets/bubble-sort-pass3.drawio similarity index 100% rename from src/array/sort/assets/bubble-sort-pass3.drawio rename to src/sort/assets/bubble-sort-pass3.drawio diff --git a/src/array/sort/assets/bubble-sort-pass3.svg b/src/sort/assets/bubble-sort-pass3.svg similarity index 100% rename from src/array/sort/assets/bubble-sort-pass3.svg rename to src/sort/assets/bubble-sort-pass3.svg diff --git a/src/sort/assets/bubble_sort.rs b/src/sort/assets/bubble_sort.rs new file mode 120000 index 000000000..9c92b17ce --- /dev/null +++ b/src/sort/assets/bubble_sort.rs @@ -0,0 +1 @@ +../../../sort/src/bubble_sort.rs \ No newline at end of file diff --git a/src/array/sort/assets/gnome-sort-pass1.drawio b/src/sort/assets/gnome-sort-pass1.drawio similarity index 100% rename from src/array/sort/assets/gnome-sort-pass1.drawio rename to src/sort/assets/gnome-sort-pass1.drawio diff --git a/src/array/sort/assets/gnome-sort-pass1.svg b/src/sort/assets/gnome-sort-pass1.svg similarity index 100% rename from src/array/sort/assets/gnome-sort-pass1.svg rename to src/sort/assets/gnome-sort-pass1.svg diff --git a/src/array/sort/assets/gnome-sort-pass2.drawio b/src/sort/assets/gnome-sort-pass2.drawio similarity index 100% rename from src/array/sort/assets/gnome-sort-pass2.drawio rename to src/sort/assets/gnome-sort-pass2.drawio diff --git a/src/array/sort/assets/gnome-sort-pass2.svg b/src/sort/assets/gnome-sort-pass2.svg similarity index 100% rename from src/array/sort/assets/gnome-sort-pass2.svg rename to src/sort/assets/gnome-sort-pass2.svg diff --git a/src/array/sort/assets/gnome-sort-pass3.drawio b/src/sort/assets/gnome-sort-pass3.drawio similarity index 100% rename from src/array/sort/assets/gnome-sort-pass3.drawio rename to src/sort/assets/gnome-sort-pass3.drawio diff --git a/src/array/sort/assets/gnome-sort-pass3.svg b/src/sort/assets/gnome-sort-pass3.svg similarity index 100% rename from src/array/sort/assets/gnome-sort-pass3.svg rename to src/sort/assets/gnome-sort-pass3.svg diff --git a/src/sort/assets/gnome_sort.rs b/src/sort/assets/gnome_sort.rs new file mode 120000 index 000000000..df5f55b40 --- /dev/null +++ b/src/sort/assets/gnome_sort.rs @@ -0,0 +1 @@ +../../../sort/src/gnome_sort.rs \ No newline at end of file diff --git a/src/array/sort/assets/insertion-sort-pass1.drawio b/src/sort/assets/insertion-sort-pass1.drawio similarity index 100% rename from src/array/sort/assets/insertion-sort-pass1.drawio rename to src/sort/assets/insertion-sort-pass1.drawio diff --git a/src/array/sort/assets/insertion-sort-pass1.svg b/src/sort/assets/insertion-sort-pass1.svg similarity index 100% rename from src/array/sort/assets/insertion-sort-pass1.svg rename to src/sort/assets/insertion-sort-pass1.svg diff --git a/src/array/sort/assets/insertion-sort-pass2.drawio b/src/sort/assets/insertion-sort-pass2.drawio similarity index 100% rename from src/array/sort/assets/insertion-sort-pass2.drawio rename to src/sort/assets/insertion-sort-pass2.drawio diff --git a/src/array/sort/assets/insertion-sort-pass2.svg b/src/sort/assets/insertion-sort-pass2.svg similarity index 100% rename from src/array/sort/assets/insertion-sort-pass2.svg rename to src/sort/assets/insertion-sort-pass2.svg diff --git a/src/array/sort/assets/insertion-sort-pass3.drawio b/src/sort/assets/insertion-sort-pass3.drawio similarity index 100% rename from src/array/sort/assets/insertion-sort-pass3.drawio rename to src/sort/assets/insertion-sort-pass3.drawio diff --git a/src/array/sort/assets/insertion-sort-pass3.svg b/src/sort/assets/insertion-sort-pass3.svg similarity index 100% rename from src/array/sort/assets/insertion-sort-pass3.svg rename to src/sort/assets/insertion-sort-pass3.svg diff --git a/src/sort/assets/insertion_sort.rs b/src/sort/assets/insertion_sort.rs new file mode 120000 index 000000000..1ec15e435 --- /dev/null +++ b/src/sort/assets/insertion_sort.rs @@ -0,0 +1 @@ +../../../sort/src/insertion_sort.rs \ No newline at end of file diff --git a/src/array/sort/assets/selection-sort-pass1.drawio b/src/sort/assets/selection-sort-pass1.drawio similarity index 100% rename from src/array/sort/assets/selection-sort-pass1.drawio rename to src/sort/assets/selection-sort-pass1.drawio diff --git a/src/array/sort/assets/selection-sort-pass1.svg b/src/sort/assets/selection-sort-pass1.svg similarity index 100% rename from src/array/sort/assets/selection-sort-pass1.svg rename to src/sort/assets/selection-sort-pass1.svg diff --git a/src/array/sort/assets/selection-sort-pass2.drawio b/src/sort/assets/selection-sort-pass2.drawio similarity index 100% rename from src/array/sort/assets/selection-sort-pass2.drawio rename to src/sort/assets/selection-sort-pass2.drawio diff --git a/src/array/sort/assets/selection-sort-pass2.svg b/src/sort/assets/selection-sort-pass2.svg similarity index 100% rename from src/array/sort/assets/selection-sort-pass2.svg rename to src/sort/assets/selection-sort-pass2.svg diff --git a/src/array/sort/assets/selection-sort-pass3.drawio b/src/sort/assets/selection-sort-pass3.drawio similarity index 100% rename from src/array/sort/assets/selection-sort-pass3.drawio rename to src/sort/assets/selection-sort-pass3.drawio diff --git a/src/array/sort/assets/selection-sort-pass3.svg b/src/sort/assets/selection-sort-pass3.svg similarity index 100% rename from src/array/sort/assets/selection-sort-pass3.svg rename to src/sort/assets/selection-sort-pass3.svg diff --git a/src/sort/assets/selection_sort.rs b/src/sort/assets/selection_sort.rs new file mode 120000 index 000000000..aaaeb91ab --- /dev/null +++ b/src/sort/assets/selection_sort.rs @@ -0,0 +1 @@ +../../../sort/src/selection_sort.rs \ No newline at end of file diff --git a/src/sort/assets/shell_sort.rs b/src/sort/assets/shell_sort.rs new file mode 120000 index 000000000..d64125c00 --- /dev/null +++ b/src/sort/assets/shell_sort.rs @@ -0,0 +1 @@ +../../../sort/src/shell_sort.rs \ No newline at end of file diff --git a/src/array/sort/bubble-sort.md b/src/sort/bubble-sort.md similarity index 100% rename from src/array/sort/bubble-sort.md rename to src/sort/bubble-sort.md diff --git a/src/array/sort/bucket-sort.md b/src/sort/bucket-sort.md similarity index 100% rename from src/array/sort/bucket-sort.md rename to src/sort/bucket-sort.md diff --git a/src/array/sort/counting-sort.md b/src/sort/counting-sort.md similarity index 100% rename from src/array/sort/counting-sort.md rename to src/sort/counting-sort.md diff --git a/src/array/sort/dual-pivot-quick-sort.md b/src/sort/dual-pivot-quick-sort.md similarity index 100% rename from src/array/sort/dual-pivot-quick-sort.md rename to src/sort/dual-pivot-quick-sort.md diff --git a/src/array/sort/gnome-sort.md b/src/sort/gnome-sort.md similarity index 100% rename from src/array/sort/gnome-sort.md rename to src/sort/gnome-sort.md diff --git a/src/array/sort/heap-sort.md b/src/sort/heap-sort.md similarity index 100% rename from src/array/sort/heap-sort.md rename to src/sort/heap-sort.md diff --git a/src/array/sort/index.md b/src/sort/index.md similarity index 100% rename from src/array/sort/index.md rename to src/sort/index.md diff --git a/src/array/sort/insertion-sort.md b/src/sort/insertion-sort.md similarity index 100% rename from src/array/sort/insertion-sort.md rename to src/sort/insertion-sort.md diff --git a/src/array/sort/merge-sort.md b/src/sort/merge-sort.md similarity index 100% rename from src/array/sort/merge-sort.md rename to src/sort/merge-sort.md diff --git a/src/array/sort/quick-select.md b/src/sort/quick-select.md similarity index 100% rename from src/array/sort/quick-select.md rename to src/sort/quick-select.md diff --git a/src/array/sort/radix-sort.md b/src/sort/radix-sort.md similarity index 100% rename from src/array/sort/radix-sort.md rename to src/sort/radix-sort.md diff --git a/src/array/sort/selection-sort.md b/src/sort/selection-sort.md similarity index 100% rename from src/array/sort/selection-sort.md rename to src/sort/selection-sort.md diff --git a/src/array/sort/shell-sort.md b/src/sort/shell-sort.md similarity index 100% rename from src/array/sort/shell-sort.md rename to src/sort/shell-sort.md diff --git a/src/array/sort/sort-in-std.md b/src/sort/sort-in-std.md similarity index 100% rename from src/array/sort/sort-in-std.md rename to src/sort/sort-in-std.md