Skip to content

Commit 12fe94b

Browse files
committed
Updated .md to describe the generalized problem
1 parent 701666e commit 12fe94b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

algorithms/7_SelectionSort/selection_sort_exercise.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
# Exercise: Selection Sort
22

3-
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.
3+
Implement a Multi-Level Sort of a given list of dictionaries based on a given sorting order. If user wants to sort dictionary based on First Key 'A', Then Key 'B', they shall pass list of keys in the order of preference as a list ['A','B']. Your code should be able to sort list of dictionaries for any number of keys in sorting order list.
44

5+
Using this multi-level sort, you should be able to sort any list of dictionaries based on sorting order preference
56

7+
Example:
8+
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.
69

7-
For example, given the sequence List:
10+
for this, one shall past sorting order of preference list [ 'First Name' , 'Last Name' ]
11+
12+
For this, Given the following sequence List:
813

914
```
1015
[

0 commit comments

Comments
 (0)