LeetCode 215. Kth Largest Element in an Array [Algorithm + Code Explained ]

Опубликовано: 19 Март 2020
на канале: jayati tiwari
13,148
204

One of the most frequently asked coding interview questions on Arrays in companies like Google, Facebook, Amazon, LinkedIn, Microsoft, Uber, Apple, Adobe etc.

LeetCode : Kth Largest Element in an Array

Question - 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

Note:
You may assume k is always valid, 1 ≤ k ≤ array's length.

Connect with me on LinkedIn at:   / jayati-tiwari  


На этой странице сайта вы можете посмотреть видео онлайн LeetCode 215. Kth Largest Element in an Array [Algorithm + Code Explained ] длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь jayati tiwari 19 Март 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 13,148 раз и оно понравилось 204 зрителям. Приятного просмотра!