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:
Ramit Mittal
2018-04-29 20:57:42 +05:30
committed by Aditya Bhargava
parent 67291c451f
commit b190829dfb

View File

@@ -7,6 +7,7 @@ def findSmallest(arr):
for i in range(1, len(arr)): for i in range(1, len(arr)):
if arr[i] < smallest: if arr[i] < smallest:
smallest_index = i smallest_index = i
smallest = arr[i]
return smallest_index return smallest_index
# Sort array # Sort array