From 33041e416a86e828997f985877d1b70518317b6c Mon Sep 17 00:00:00 2001 From: Ahmed Mawia Date: Sun, 25 Oct 2020 00:48:50 +0530 Subject: [PATCH] Create Time_Sort.c This is a Time-Based Sorting Algorithm which sorts by parallel process execution of sleep and print command. --- Sorting/Time_Sort.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Sorting/Time_Sort.c diff --git a/Sorting/Time_Sort.c b/Sorting/Time_Sort.c new file mode 100644 index 0000000..1c8a70c --- /dev/null +++ b/Sorting/Time_Sort.c @@ -0,0 +1,27 @@ +#include + +int main() +{ + + int n; + printf("Enter the number of elements: "); + scanf("%d", &n); + + int arr[n]; + + for(int i=0;i