<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>psne</author_name>
  <author_url>https://blog.hatena.ne.jp/psne/</author_url>
  <blog_title>すなばいじり</blog_title>
  <blog_url>https://psn.hatenablog.jp/</blog_url>
  <categories>
    <anon>はてな</anon>
  </categories>
  <description>コードの難しさと効率の良さのバランスを考えて回答したやつ。 ここでの「難しさ」は、よく分かっていない初学者向けに何をやっているか理解できることを目的とし、「効率の良さ」は仕様や頭の中で「こう動いてほしい」という通りの書き方ではなくアルゴリズムなどを考え実装する事を目的とします。 q.hatena.ne.jp 最初に、回答で書いたコードは60点程度の内容とします。変数のstepとcountが逆の方が分りやすかったのではないか、そもそも質問の仕様と実装が合っているのか、dataの中身が整列されていない(例えばdata[1]が未定義だった場合)時の処理など色々あります。 初学者向けに使う命令を少なく…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpsn.hatenablog.jp%2Fentry%2F2017%2F06%2F29%2F235501&quot; title=&quot;進捗 20170629 - すなばいじり&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://images-fe.ssl-images-amazon.com/images/I/41BgYKHtw7L._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-06-29 23:55:01</published>
  <title>進捗 20170629</title>
  <type>rich</type>
  <url>https://psn.hatenablog.jp/entry/2017/06/29/235501</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
