Question: Python Programming (Write a Function that partitions a list into best of 9) This function should work with all lengths of 9 or more. It
Python Programming (Write a Function that partitions a list into best of 9)

This function should work with all lengths of 9 or more. It should return only one value (The best or median of the 9 partitions)
Ninther Pivot Find values at nine equally spaced indices. Split the values into groups of three For each group, find the median. Then use the median of the medians. example list: 2 1 8 9 6 24 2 6 3 9 5 5 8 0 1 2 3 4 5 79 10 11 12 13 14 15 16 pivot: 1st group is 2, 8, 6 1st median 6 2nd group is 4, 1, 7 2nd median is 4 3rd group is 9, 5, 4 3rd median is 5 medians are 6, 4, 5 median of medians is 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
