<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>s-takaya1027</author_name>
  <author_url>https://blog.hatena.ne.jp/s-takaya1027/</author_url>
  <blog_title>何かやってみるブログ</blog_title>
  <blog_url>https://takayasugiyama.com/</blog_url>
  <categories>
  </categories>
  <description>ボゴソートについてはWikipediaの説明がわかりやすい。 ja.wikipedia.org コード ランダムの10個の要素を持つ配列を作成してボゴソートをする。Benchmarkを使って実行時間も出力させてみた。 require 'benchmark' def check_sorted?(arr) arr[..-2].each_with_index do |elm, index| return false if elm &gt; arr[index + 1] end true end def bogo_sort(arr) loop do if check_sorted?(arr) return …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakayasugiyama.com%2Fentry%2F2021%2F07%2F14%2F060000&quot; title=&quot; [Ruby メモ] ボゴソートを実装してみた。 - 何かやってみるブログ&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>2021-07-14 06:00:00</published>
  <title> [Ruby メモ] ボゴソートを実装してみた。</title>
  <type>rich</type>
  <url>https://takayasugiyama.com/entry/2021/07/14/060000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
