<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Array on Yosgi</title><link>https://yosgi.github.io/en/tags/array/</link><description>Recent content in Array on Yosgi</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 29 Jun 2026 09:20:51 +0000</lastBuildDate><atom:link href="https://yosgi.github.io/en/tags/array/index.xml" rel="self" type="application/rss+xml"/><item><title>215. Kth Largest Element in an Array</title><link>https://yosgi.github.io/en/post/215-kth-largest-element-in-an-array/</link><pubDate>Thu, 25 Feb 2021 00:00:00 +1300</pubDate><guid>https://yosgi.github.io/en/post/215-kth-largest-element-in-an-array/</guid><description>30min The first thing that comes to mind when I get the question is to sort it directly… But we can optimize the quick sort to get the result Solution 1. Quick sort The idea of quick sort is to find a benchmark in the array and divide the array into the benchmark, the part smaller than the benchmark, and the part larger than the benchmark. The benchmark itself has been sorted. If the benchmark is the kth largest element, the result can be obtained directly.</description></item><item><title>Arrays, stacks, queues</title><link>https://yosgi.github.io/en/post/arrays-stacks-queues/</link><pubDate>Wed, 22 Aug 2018 15:09:45 +1200</pubDate><guid>https://yosgi.github.io/en/post/arrays-stacks-queues/</guid><description>Javascript Data Structures</description></item></channel></rss>