K’th Smallest/Largest Element in Unsorted Array | Priority Queue Divyanshu| Geeksforgeeks

preview_player
Показать описание
In this stream we will be showing you how can find the smallest and largest element in an array using priority queue.

Link for the question:

This is our course on CPP foundation:

𝙁𝙤𝙡𝙡𝙤𝙬 𝙪𝙨 𝙤𝙣 𝙤𝙪𝙧 𝙎𝙤𝙘𝙞𝙖𝙡 𝙈𝙚𝙙𝙞𝙖 𝙃𝙖𝙣𝙙𝙡𝙚𝙨 -
Рекомендации по теме
Комментарии
Автор

first i thought why this question has a medium tag all we need is to sort and return k-1th ele, but now i know why it has medium tag

raj_soni