companyhub
DashboardCompaniesProblemsSheetsBookmarksRevisionsAnalyticsLeaderboardCompare
Settings
Sign in
DashboardCompaniesProblemsSheetsBookmarks
Medium

Kth Largest Element in an Array

68.9% acceptance · asked by 42 companies

Solve on LeetCode
ArrayDivide and ConquerSortingHeap (Priority Queue)Quickselect

Workspace

Scratch, run, iterate — then submit on LeetCode

Custom input (stdin)

Console

Output appears here. Runs on the free Piston sandbox.

Your notes

Sign in to keep markdown notes on this problem — approach, complexity, gotchas.

Who asks this

Pocket Gems100Alibaba100Cerner100Bny Mellon88Verily
88
Avito88
Qualcomm88
Meta88
Spotify75
Apple75
Tiktok75
Zepto75
Walmart Labs75
Microsoft63
Oracle63
Sap63
Servicenow63
Ebay63
Flipkart63
Bloomberg63
Amazon63
Infosys63
Linkedin63
Morgan Stanley63

Related problems

Two Sum
Easy
Merge Intervals
Medium
Best Time to Buy and Sell Stock
Easy
Group Anagrams
Medium
Number of Islands
Medium