resolve issue 70, correction in python selection sort (#72)
* Resolve Issue #40: Changed more examples to use python3 syntax * corrected selection sort python
This commit is contained in:
committed by
Aditya Bhargava
parent
67291c451f
commit
b190829dfb
@@ -7,6 +7,7 @@ def findSmallest(arr):
|
||||
for i in range(1, len(arr)):
|
||||
if arr[i] < smallest:
|
||||
smallest_index = i
|
||||
smallest = arr[i]
|
||||
return smallest_index
|
||||
|
||||
# Sort array
|
||||
|
||||
Reference in New Issue
Block a user