LeetCode 215. Kth Largest Element in an Array | JSer - JavaScript & Algorithm

preview_player
Показать описание
first heard of quickSelect, which is an approach related to quickSort.
Hi I'm a JavaScript engineer who is not good at algorithms,
and currently practicing leetCode online. If you are interested, maybe we can learn together.
Рекомендации по теме
Комментарии
Автор

Why would you implement quicksort by scratch when V8 engine uses that by default? The best optimized solution is using Heaps otherwise a sort function with slice ar the end will work.

taranxd