Workday Interview Question

Find the kth largest element in a list.

Interview Answers

Anonymous

Nov 6, 2017

Can be done using min heap.

1

Anonymous

Nov 2, 2017

Sort the list, then grab the kth index.