data-structures-algorithms-python icon indicating copy to clipboard operation
data-structures-algorithms-python copied to clipboard

Selection Sort Solution to Exercise and True output does not match

Open MadhavWagh opened this issue 4 years ago • 0 comments

The last 4 sorted elements from solution are: {'First Name': 'Raj', 'Last Name': 'Sharma'} {'First Name': 'Raj', 'Last Name': 'Nayyar'} {'First Name': 'Raj', 'Last Name': 'Thakur'} {'First Name': 'Suraj', 'Last Name': 'Sharma'

but alphabetically, 'Nayyar' should come before 'Sharma'.

The attached code below gives the desired o/p. exercise_selection_sort.txt

MadhavWagh avatar Jan 03 '22 13:01 MadhavWagh