-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Selection sort exercise #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selection sort exercise #7
Conversation
@@ -0,0 +1,28 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this file
@@ -0,0 +1,54 @@ | |||
# Exercise: Selection Sort | |||
|
|||
Implement a Milti-Level Sort of a given list of dictionaries. A single dictionary entry contains two keys 'First Name' and 'Last Name'. the list should be sorted first based on 'First Name', then based on 'Last Name', w.r.t. common/same 'First Name' entries. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Multi-level
|
||
print(f'Given unsorted array:', *elements, sep='\n') | ||
multilevel_selection_sort( | ||
elements, ['First Name', 'Last Name']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
multilevel_selection_sort(
elements, ['First Name', 'Last Name']
)
The selection sort exercise is implemented as a milti-level sort on list of dictionaries