Skip to content

Commit b190829

Browse files
Ramit MittalegonSchiele
authored andcommitted
resolve issue 70, correction in python selection sort (egonSchiele#72)
* Resolve Issue egonSchiele#40: Changed more examples to use python3 syntax * corrected selection sort python
1 parent 67291c4 commit b190829

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

02_selection_sort/python/01_selection_sort.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ def findSmallest(arr):
77
for i in range(1, len(arr)):
88
if arr[i] < smallest:
99
smallest_index = i
10+
smallest = arr[i]
1011
return smallest_index
1112

1213
# Sort array

0 commit comments

Comments
 (0)