- 1

Given a list,find the kth largest element in the list??

Given a list, find the k-th largest element in the list. Input: list = [3, 5, 2, 4, 6, 8], k = 3 Output=5

13th Feb 2020, 4:33 PM
Aslam Basha
Aslam Basha - avatar
2 Antworten
+ 8
I don't know if there is a built-in for that but you can implement this logic: output = listInDescendingOrder[k-1]
13th Feb 2020, 4:41 PM
Kevin ★
0
can you describe your problem
13th Feb 2020, 4:38 PM
Abhay Singh
Abhay Singh - avatar