<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>utgwkk</author_name>
  <author_url>https://blog.hatena.ne.jp/utgwkk/</author_url>
  <blog_title>私が歌川です</blog_title>
  <blog_url>https://blog.utgw.net/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>まずはじめに 「Ruby 樹形図」でググっても、アルファベットを並べ替えるというのしか出てこないワケです。 ちゃうねん！ ぼくが求めているのは、そっちの樹形図じゃない。 たとえば、コインを4つ投げたときの表裏の出方の全ての場合を書き出したい、というのが近い。 これがねえ、簡単そうでなかなか難しいわけですよ。たとえば、 (1,2,3,4)(1,2,3)(1,2) ()の数字は、そこに入りうる数字である このとき、起こりうる全ての事象(数字の組み合わせ)を書き出せ。 この問題を考えるときに、1番目の括弧には1,2,3,4、2番目には1,2,3、3番目には1,2、と考えるために、 lst = [[1…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.utgw.net%2Fentry%2F2013%2F08%2F10%2F144253&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>2013-08-10 14:42:53</published>
  <title>Ruby で並べ替え問題じゃないときの樹形図(すべての事象)を書き出す</title>
  <type>rich</type>
  <url>https://blog.utgw.net/entry/2013/08/10/144253</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
