From 5a3ccb20727376e50fff2d7068dc2abe64bdc418 Mon Sep 17 00:00:00 2001 From: Satyam Singh <115134729+ss1340@users.noreply.github.com> Date: Sat, 14 Oct 2023 02:45:25 +0530 Subject: [PATCH] Create ss.py --- ss.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ss.py diff --git a/ss.py b/ss.py new file mode 100644 index 0000000..4830ce7 --- /dev/null +++ b/ss.py @@ -0,0 +1,17 @@ +def selection_sort(array): + length = len(array) + + for i in range(length-1): + minIndex = i + + for j in range(i+1, length): + if array[j]