From 4e3e84d9716a08885a40c1f66c2fd26d29de6d32 Mon Sep 17 00:00:00 2001 From: Manish17292000 <43097382+Manish17292000@users.noreply.github.com> Date: Tue, 2 Oct 2018 19:27:38 +0530 Subject: [PATCH] Added selection sort --- Selection sort | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Selection sort diff --git a/Selection sort b/Selection sort new file mode 100644 index 0000000..84d9093 --- /dev/null +++ b/Selection sort @@ -0,0 +1,36 @@ +#include + +/* + * @ar_size array size + * @ar array pointer + */ +void selectionsort(int ar_size, int * ar) +{ + for(int j=0; j