Update 01_selection_sort.py (#59)
remove one line of code which is redundant
This commit is contained in:
committed by
Aditya Bhargava
parent
7b3eab5f5a
commit
bff0bbaaa2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user