<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bouzuya</author_name>
  <author_url>https://blog.hatena.ne.jp/bouzuya/</author_url>
  <blog_title>bouzuya.hatenablog.com</blog_title>
  <blog_url>https://bouzuya.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>『問題解決のための「アルゴリズム×数学」が基礎からしっかり身につく本』に出ていたのだけどこのソート &quot;ICan’tBelieveItCanSort&quot; は面白い。 https://arxiv.org/abs/2110.01111 fn main() { // ICan’tBelieveItCanSort let mut a = vec![2, 1, 5, 3, 4]; let n = a.len(); for i in 0..n { for j in 0..n { if a[i] &lt; a[j] { a.swap(i, j); } } } assert_eq!(a, vec![1, 2, 3, 4…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbouzuya.hatenablog.com%2Fentry%2F2022%2F02%2F08%2F224701&quot; title=&quot;ICan’tBelieveItCanSort - bouzuya.hatenablog.com&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>2022-02-08 22:47:01</published>
  <title>ICan’tBelieveItCanSort</title>
  <type>rich</type>
  <url>https://bouzuya.hatenablog.com/entry/2022/02/08/224701</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
