<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uggds</author_name>
  <author_url>https://blog.hatena.ne.jp/uggds/</author_url>
  <blog_title>UGA Boxxx</blog_title>
  <blog_url>https://uga-box.hatenablog.com/</blog_url>
  <categories>
    <anon>アルゴリズム</anon>
  </categories>
  <description>ある配列の [a, b, c] の組み合わせを格納した配列をつくりたい [[a, b], [a, c], [b, c]] 数学的には 3C2になる こちらを参考に実装してみる www.baeldung.com public List&lt;int[]&gt; generate(int n, int r) { List&lt;int[]&gt; combinations = new ArrayList&lt;&gt;(); helper(combinations, new int[r], 0, n-1, 0); return combinations; } private void helper(List&lt;int[]&gt; combi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fuga-box.hatenablog.com%2Fentry%2F2020%2F10%2F30%2F000000&quot; title=&quot;【アルゴリズム】組み合わせ(Combination) - UGA Boxxx&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>2020-04-08 00:00:00</published>
  <title>【アルゴリズム】組み合わせ(Combination)</title>
  <type>rich</type>
  <url>https://uga-box.hatenablog.com/entry/2020/10/30/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
