Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 229 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 229 Bytes

Find the k-th Largest Element in a List

This problem was asked by Facebook.

Description

Given a list, find the k-th largest element in the list.

Example

Input:  
  list = [3, 5, 2, 4, 6, 8]
  k = 3

Output: 5