Find the K-th largest element in an array of unsorted integers
Anonymous
Sorting and picking the K-th largest is the answer I gave but the answer the interviewer was looking for was the QuickSelect algorithm
Check out your Company Bowl for anonymous work chats.