<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ymaru</author_name>
  <author_url>https://blog.hatena.ne.jp/ymaru/</author_url>
  <blog_title>つれづれ日記</blog_title>
  <blog_url>https://ymaru.hatenadiary.org/</blog_url>
  <categories>
    <anon>JAVA</anon>
    <anon>アルゴリズム</anon>
  </categories>
  <description>原理はこれ見てください。ソートアルゴリズムで最速といわれています。 基準値の選び方があるようですが、下記では配列範囲内の一番右を使っています。 なんかクイックソートのサンプルはバグが多かったです。。int[] data = {1,1,1}; で無限ループします。orz public void sort(int low, int high) { if (low &gt;= high) { return; } int p = partition(low, high); sort(low, p-1); // Lower sort(p+1, high); // Higher } private int[] …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fymaru.hatenadiary.org%2Fentry%2F20081126%2Fp1&quot; title=&quot; クイックソート（Quick Sort） - つれづれ日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-11-26 00:00:00</published>
  <title> クイックソート（Quick Sort）</title>
  <type>rich</type>
  <url>https://ymaru.hatenadiary.org/entry/20081126/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
