- 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
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]
0
can you describe your problem