Skip to content

Commit

Permalink
Added BubbleSort as a Sorting Algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
Neldeborg committed Oct 29, 2019
1 parent 9150ea3 commit 99a2e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sorting Algorithms/BubbleSort.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void bubbleSort(int arr[])
for (int j = 0; j < n-i-1; j++)
if (arr[j] > arr[j+1])
{
// swap arr[j+1] and arr[i]
// swap arr[j+1] and arr[j]
int temp = arr[j];
arr[j] = arr[j+1];
arr[j+1] = temp;
Expand Down

0 comments on commit 99a2e58

Please sign in to comment.