---
title: "Discussion on \"Kth Largest Element in an Array (Medium)\" | Hashnode"
description: "Discussion on \"Kth Largest Element in an Array (Medium)\". Given an integer array nums and an integer k, return thek<sup>th</sup>largest element in the array.\nNote that it is the k<sup>th</sup> largest element in the sorted order, not the k<sup>th</sup> distinct element.\nCan you solve it without sorting?\nExa..."
url: "https://hashnode.com/posts/kth-largest-element-in-an-array-medium/6679c1c94c929694f5344330"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Kth Largest Element in an Array (Medium)](https://lietcode.hashnode.dev/kth-largest-element-in-an-array-medium?utm_source=hashnode&utm_medium=feed)

Given an integer array nums and an integer k, return thek<sup>th</sup>largest element in the array. Note that it is the k<sup>th</sup> largest element in the sorted order, not the k<sup>th</sup> distinct element. Can you solve it without sorting? Exa...

Jun 24, 2024 · 5 min read · lietcode.hashnode.dev  
Read the article

-   [#heap](https://hashnode.com/tag/heap)
-   [#heap-sort](https://hashnode.com/tag/heap-sort)

## Written by

[Abhi](https://hashnode.com/@lietcode)

@lietcode

  
[View profile](https://hashnode.com/@lietcode)

Let's crack the interviews

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
