<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nainaistar</author_name>
  <author_url>https://blog.hatena.ne.jp/nainaistar/</author_url>
  <blog_title>きり丸の技術日記</blog_title>
  <blog_url>https://nainaistar.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>技術</anon>
  </categories>
  <description>小ネタ。業務で使ったことは無いですが、LeetCodeで必要になることが多いので自分向けに整理します。 なお、もっとよりよいやり方があれば教えていただきたいです。 環境 Java 15 ゴール 入力値は数値 戻り値は数値の配列（Listでも配列でもOK） 最も早く変換できるやり方 タイトルの例とは順序が逆になりますが、早く変換できます。（109 -&gt; 9, 0, 1） 数値だけ処理したいことが多いので、これがあれば大体十分です。 なお、ArrayListの初期配列を設定したほうが早いのですが、初期配列数を求めるためのコストが高いので今回はデフォルト値を設定しています。もし、問題文の中で最大長が…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnainaistar.hatenablog.com%2Fentry%2F2021%2F04%2F28%2F120000&quot; title=&quot;Javaで数値から1桁ずつの数値配列に変換する(109を1,0,9の配列に変換する) - きり丸の技術日記&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/n/nainaistar/20210428/20210428031714.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-04-28 12:00:00</published>
  <title>Javaで数値から1桁ずつの数値配列に変換する(109を1,0,9の配列に変換する)</title>
  <type>rich</type>
  <url>https://nainaistar.hatenablog.com/entry/2021/04/28/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
