From bff0bbaaa2edcb0410c1e0f9fef572b41dfe9eb4 Mon Sep 17 00:00:00 2001 From: Wenxuan Zhou Date: Tue, 20 Mar 2018 00:51:07 +0800 Subject: [PATCH] Update 01_selection_sort.py (#59) remove one line of code which is redundant --- 02_selection_sort/python/01_selection_sort.py | 1 - 1 file changed, 1 deletion(-) diff --git a/02_selection_sort/python/01_selection_sort.py b/02_selection_sort/python/01_selection_sort.py index e6fefa9..3dca226 100644 --- a/02_selection_sort/python/01_selection_sort.py +++ b/02_selection_sort/python/01_selection_sort.py @@ -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