Skip to content

Commit ec0d284

Browse files
committedJan 6, 2021
updated
1 parent ddc1838 commit ec0d284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎SortingAlgorithm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public void selectionSort() {
143143
public Void doInBackground() throws InterruptedException {
144144
for(current_index = 0; current_index < SIZE-1; current_index++) {
145145
int min_index = current_index;
146-
for(int traversing_index = current_index + 1; traversing_index < SIZE; traversing_index++) {
146+
for(int traversing_index = current_index + 1; traversing_index < SIZE0; traversing_index++) {
147147
if (bar_height[traversing_index] < bar_height[min_index]) {
148148
min_index = traversing_index;
149149
}

0 commit comments

Comments
 (0)
Please sign in to comment.