Skip to content

Commit

Permalink
Deal with the whitespace and indent
Browse files Browse the repository at this point in the history
  • Loading branch information
bigscorpions committed Dec 16, 2015
1 parent ab5494b commit 296f6b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/github/pedrovgs/problem74/BubbleSort.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public void sort(int[] numbers) {
while (swap) {
swap = false;
for (int i = 0; i < length - 1; i++) {
for (int j = 0; j < length -i - 1; j++) {
for (int j = 0; j < length - i - 1; j++) {
if (numbers[j] > numbers[j + 1]) {
swap(numbers, j, j+1);
swap = true;
swap(numbers, j, j + 1);
swap = true;
}
}
}
Expand Down

0 comments on commit 296f6b0

Please sign in to comment.