<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ad2217</author_name>
  <author_url>https://blog.hatena.ne.jp/ad2217/</author_url>
  <blog_title>ネギ式</blog_title>
  <blog_url>https://ad2217.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>組み合わせを爆発させる簡単な方法。 追記：qiitaにある再帰版の方がよい。 qiita.com やりたいことは、[A,B,C,D]という配列があったら、順にA, B, C, D, AB, AC, AD, BC, BD, CD, ABC, ABD, ACD, BCD,ABCDという出力をするようなプログラムを作ること。もちろん配列の長さはあらかじめ決まっていない。（とはいえ、せいぜい31まで(javascript の場合)。 64ビット整数の使える言語なら64までの長さの配列の組み合わせを求められると思うかも知れないが、残念ながら2の64乗をすべてカウントするのは今のCPUではまだ力が足りない…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fad2217.hatenablog.com%2Fentry%2F2022%2F10%2F25%2F190000&quot; title=&quot;プログラム：n個の組み合わせを生成する【追記:再帰の方が良い】 - ネギ式&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>https://cdn-ak.f.st-hatena.com/images/fotolife/a/ad2217/20221002/20221002104256.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-10-25 19:00:00</published>
  <title>プログラム：n個の組み合わせを生成する【追記:再帰の方が良い】</title>
  <type>rich</type>
  <url>https://ad2217.hatenablog.com/entry/2022/10/25/190000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
