<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuzou555</author_name>
  <author_url>https://blog.hatena.ne.jp/shuzou555/</author_url>
  <blog_title>gakkie プログラミング 備忘録</blog_title>
  <blog_url>https://gakkie.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>問題 連続していない配列の最初の要素を見つけること 連続していないということは，配列の前の要素よりも正確に1つ大きくないこと function firstNonConsecutive (arr) { //初期化i=0、要素数-1がiより大きい場合が真の場合以下をくり返す。最後にiに1を足す。 for(let i = 0; i &lt; arr.length - 1; ++i){ //index番号 = 値ではない場合、値を返す。 if (arr[i] + 1 !== arr[i + 1]) { return arr[i + 1] //arr[i + 1] } } return null } いつもあ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgakkie.hatenadiary.com%2Fentry%2F2020%2F07%2F16%2F230517&quot; title=&quot;Find the first non-consecutive number - gakkie プログラミング 備忘録&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-07-16 23:05:17</published>
  <title>Find the first non-consecutive number</title>
  <type>rich</type>
  <url>https://gakkie.hatenadiary.com/entry/2020/07/16/230517</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
