Question: Implement function, largest_ten (listi) for finding the ten largest elements in a list of size n. Input: largest_ten([9,8,6,4,22,68,96,212,52,12,6,8,99,128]) Returns: [212, 128, 99, 96, 68, 52,

Implement function, largest_ten (listi) for finding the ten largest elements in a list of size n. Input: largest_ten([9,8,6,4,22,68,96,212,52,12,6,8,99,128]) Returns: [212, 128, 99, 96, 68, 52, 22, 12, 9, 8] # Order doesn't matter. Important: For this question, you should avoid modifying the original sequence. For this question, you should avoid copying the entire original sequence. You can assume input list size is always greater than 10. You can assume list1 contains only integers. Your program must take O(N) time. Where N is the number of elements for the input list. (8pts)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
