Kth Largest Element in an Array Tamil Tutorial C++ (LeetCode 215 Medium)

Опубликовано: 21 Июль 2026
на канале: Akhil Chakravarthy - Tamil Coding Tutorials
1,000
19

Hey Guys! I teach competitive coding questions in Tamil:)
Any suggestions welcome:)
Thanks for watching :D

Follow me on Instagram (@code_chak): https://instagram.com/code_chak?igshi...
Follow me on LinkedIn:   / akhilchakravarthy  
Problem link: https://leetcode.com/problems/kth-lar...
Problem Description:
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.

Example 1:

Input: [3,2,1,5,6,4] and k = 2
Output: 5
Example 2:

Input: [3,2,3,1,2,4,5,5,6] and k = 4
Output: 4