Update 01_selection_sort.py (#59)

remove one line of code which is redundant
This commit is contained in:
Wenxuan Zhou
2018-03-20 00:51:07 +08:00
committed by Aditya Bhargava
parent 7b3eab5f5a
commit bff0bbaaa2

View File

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