From 089fd341caf07ccd46ac6ba20059b2849697fe6f Mon Sep 17 00:00:00 2001 From: Arghajyoti Dasbairagi <108194473+Arghajyoti@users.noreply.github.com> Date: Sat, 22 Oct 2022 13:37:03 +0530 Subject: [PATCH] Update Bubble_Sort.cpp --- Bubble_Sort.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Bubble_Sort.cpp b/Bubble_Sort.cpp index af37fda..7bac59e 100644 --- a/Bubble_Sort.cpp +++ b/Bubble_Sort.cpp @@ -1,20 +1,20 @@ #include using namespace std; -void printArray(int *a,int k) +void printArray(int *a,int b) { - for(int i=0;ia[i+1]) { @@ -25,15 +25,15 @@ void bubbleSort(int *a,int k) } } } -void bubbleSortAdaptive(int *a,int k) +void bubbleSortAdaptive(int *a,int b) { int temp; int isSorted=1; - for(int j=0;j< k-1;j++) + for(int j=0;j< b-1;j++) { cout<<"Program working on pass number "<a[i+1])