From c673318c6e226580034cd50f53530fe21822e54c Mon Sep 17 00:00:00 2001 From: APOORV MISHRA Date: Fri, 25 Oct 2019 19:17:06 +0530 Subject: [PATCH 1/7] status --- README.md | 3 --- code.c.txt | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 code.c.txt diff --git a/README.md b/README.md index c3e050b..e69de29 100644 --- a/README.md +++ b/README.md @@ -1,3 +0,0 @@ -# Data Structures and Algorithms in C - -## Won't count towards prize diff --git a/code.c.txt b/code.c.txt new file mode 100644 index 0000000..46d5701 --- /dev/null +++ b/code.c.txt @@ -0,0 +1,40 @@ +//DSA IN C +//SORTING TECHNIQUES +//BUBBLE SORTING + +#include +int main() +{ +int arr[100]; +int n,a,i,j; +printf("ENTER THE NUMBER OF ELEMENTS YOU WANT TO HAVE IN ARRAY:\n"); +scanf("%d",&n); +printf("ENTER THE ARRAY:\n"); +for(a=0;aarr[j+1]) + { + arr[j]=arr[j]+arr[j+1]; + arr[j+1]=arr[j]-arr[j+1]; + arr[j]=arr[j]-arr[j+1]; + } + } +} +printf("YOUR SORTED ARRAY IS:\n"); +for(a=0;a Date: Fri, 25 Oct 2019 20:56:28 +0530 Subject: [PATCH 2/7] MY 4th PULL REQUEST --- code2.c.txt | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 code2.c.txt diff --git a/code2.c.txt b/code2.c.txt new file mode 100644 index 0000000..b531dbd --- /dev/null +++ b/code2.c.txt @@ -0,0 +1,37 @@ +#include +int main() +{ +int arr[100]; +int n,a,i,j,min; +printf("ENTER THE NUMBER OF ELEMENTS YOU WANT TO HAVE IN ARRAY:\n"); +scanf("%d",&n); +printf("ENTER THE ARRAY:\n"); +for(a=0;a Date: Sat, 26 Oct 2019 10:26:59 +0530 Subject: [PATCH 3/7] SORTING TECHNIQUES --- SORTING/bubble sort.txt | 40 ++++++++++++++++++++++++++++++++++++++ SORTING/insertion.txt | 36 ++++++++++++++++++++++++++++++++++ SORTING/selection sort.txt | 37 +++++++++++++++++++++++++++++++++++ 3 files changed, 113 insertions(+) create mode 100644 SORTING/bubble sort.txt create mode 100644 SORTING/insertion.txt create mode 100644 SORTING/selection sort.txt diff --git a/SORTING/bubble sort.txt b/SORTING/bubble sort.txt new file mode 100644 index 0000000..46d5701 --- /dev/null +++ b/SORTING/bubble sort.txt @@ -0,0 +1,40 @@ +//DSA IN C +//SORTING TECHNIQUES +//BUBBLE SORTING + +#include +int main() +{ +int arr[100]; +int n,a,i,j; +printf("ENTER THE NUMBER OF ELEMENTS YOU WANT TO HAVE IN ARRAY:\n"); +scanf("%d",&n); +printf("ENTER THE ARRAY:\n"); +for(a=0;aarr[j+1]) + { + arr[j]=arr[j]+arr[j+1]; + arr[j+1]=arr[j]-arr[j+1]; + arr[j]=arr[j]-arr[j+1]; + } + } +} +printf("YOUR SORTED ARRAY IS:\n"); +for(a=0;a +int main() +{ + int arr[100]; + int i,j,a,n,temp; + printf("ENTER THE NUMBER OF ELEMENTS TO BE PRESENT IN ARRAY:\n"); + scanf("%d",&n); + printf("ENTER THE ARRAY:\n"); + for(a=0;a=0&&arr[j]>temp;j--) + { + arr[j+1]=arr[j]; + + } + arr[j+1]=temp; + } + printf("YOUR SORTED ARRAY IS:\n"); + for(a=0;a +int main() +{ +int arr[100]; +int n,a,i,j,min; +printf("ENTER THE NUMBER OF ELEMENTS YOU WANT TO HAVE IN ARRAY:\n"); +scanf("%d",&n); +printf("ENTER THE ARRAY:\n"); +for(a=0;a Date: Thu, 1 Jul 2021 13:23:31 +0530 Subject: [PATCH 4/7] Delete SORTING directory --- SORTING/bubble sort.txt | 40 -------------------------------------- SORTING/insertion.txt | 36 ---------------------------------- SORTING/selection sort.txt | 37 ----------------------------------- 3 files changed, 113 deletions(-) delete mode 100644 SORTING/bubble sort.txt delete mode 100644 SORTING/insertion.txt delete mode 100644 SORTING/selection sort.txt diff --git a/SORTING/bubble sort.txt b/SORTING/bubble sort.txt deleted file mode 100644 index 46d5701..0000000 --- a/SORTING/bubble sort.txt +++ /dev/null @@ -1,40 +0,0 @@ -//DSA IN C -//SORTING TECHNIQUES -//BUBBLE SORTING - -#include -int main() -{ -int arr[100]; -int n,a,i,j; -printf("ENTER THE NUMBER OF ELEMENTS YOU WANT TO HAVE IN ARRAY:\n"); -scanf("%d",&n); -printf("ENTER THE ARRAY:\n"); -for(a=0;aarr[j+1]) - { - arr[j]=arr[j]+arr[j+1]; - arr[j+1]=arr[j]-arr[j+1]; - arr[j]=arr[j]-arr[j+1]; - } - } -} -printf("YOUR SORTED ARRAY IS:\n"); -for(a=0;a -int main() -{ - int arr[100]; - int i,j,a,n,temp; - printf("ENTER THE NUMBER OF ELEMENTS TO BE PRESENT IN ARRAY:\n"); - scanf("%d",&n); - printf("ENTER THE ARRAY:\n"); - for(a=0;a=0&&arr[j]>temp;j--) - { - arr[j+1]=arr[j]; - - } - arr[j+1]=temp; - } - printf("YOUR SORTED ARRAY IS:\n"); - for(a=0;a -int main() -{ -int arr[100]; -int n,a,i,j,min; -printf("ENTER THE NUMBER OF ELEMENTS YOU WANT TO HAVE IN ARRAY:\n"); -scanf("%d",&n); -printf("ENTER THE ARRAY:\n"); -for(a=0;a Date: Thu, 1 Jul 2021 13:23:41 +0530 Subject: [PATCH 5/7] Delete README.md --- README.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index e69de29..0000000 From 8240c1783a8163792ebae79db74de76715f23d16 Mon Sep 17 00:00:00 2001 From: Apoorv Nath Mishra <55011904+APOORVMISHRA21@users.noreply.github.com> Date: Thu, 1 Jul 2021 13:23:51 +0530 Subject: [PATCH 6/7] Delete code.c.txt --- code.c.txt | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 code.c.txt diff --git a/code.c.txt b/code.c.txt deleted file mode 100644 index 46d5701..0000000 --- a/code.c.txt +++ /dev/null @@ -1,40 +0,0 @@ -//DSA IN C -//SORTING TECHNIQUES -//BUBBLE SORTING - -#include -int main() -{ -int arr[100]; -int n,a,i,j; -printf("ENTER THE NUMBER OF ELEMENTS YOU WANT TO HAVE IN ARRAY:\n"); -scanf("%d",&n); -printf("ENTER THE ARRAY:\n"); -for(a=0;aarr[j+1]) - { - arr[j]=arr[j]+arr[j+1]; - arr[j+1]=arr[j]-arr[j+1]; - arr[j]=arr[j]-arr[j+1]; - } - } -} -printf("YOUR SORTED ARRAY IS:\n"); -for(a=0;a Date: Thu, 1 Jul 2021 13:24:00 +0530 Subject: [PATCH 7/7] Delete code2.c.txt --- code2.c.txt | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 code2.c.txt diff --git a/code2.c.txt b/code2.c.txt deleted file mode 100644 index b531dbd..0000000 --- a/code2.c.txt +++ /dev/null @@ -1,37 +0,0 @@ -#include -int main() -{ -int arr[100]; -int n,a,i,j,min; -printf("ENTER THE NUMBER OF ELEMENTS YOU WANT TO HAVE IN ARRAY:\n"); -scanf("%d",&n); -printf("ENTER THE ARRAY:\n"); -for(a=0;a