Skip to content

Commit 41c7812

Browse files
authored
Update Bubble-Sort.md
Fixed psuedocode
1 parent 5ac18ba commit 41c7812

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Bubble_Sort/Bubble-Sort.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
```
1313
FOR i FROM length-2 TO 0 STEP -1 DO
1414
FOR counter FROM 0 TO i DO
15-
IF list[counter ]>list[counter +1] THEN
16-
SET temp TO list[counter +1]
17-
SET list[counter +1] TO list[counter ]
18-
SET list[counter] TO temp
19-
END IF
15+
IF list[counter ]>list[counter +1] THEN
16+
SET temp TO list[counter +1]
17+
SET list[counter +1] TO list[counter ]
18+
SET list[counter] TO temp
19+
END IF
2020
END FOR
2121
END FOR
2222
```

0 commit comments

Comments
 (0)