diff --git a/Bubble Sort b/Bubble Sort new file mode 100644 index 000000000..39d7e2674 --- /dev/null +++ b/Bubble Sort @@ -0,0 +1,8 @@ +void bubble(int arr[], int i, int n) +{ + // Your code here + + for(int j=0;j<(n-1);j++){ + if(arr[j]>arr[j+1]){swap(&arr[j] , &arr[j+1]);} + } +}