Workday interview question

Find the kth largest element in a list.

Interview Answers

Anonymous

6 Nov 2017

Can be done using min heap.

1

Anonymous

2 Nov 2017

Sort the list, then grab the kth index.