<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sho_ya</author_name>
  <author_url>https://blog.hatena.ne.jp/sho_ya/</author_url>
  <blog_title>プログラマの森（仮）</blog_title>
  <blog_url>https://mo2i.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>何故書くか？は前前前回書いたので、以下、即本題。 実行環境は今までと同じく、coding groundを使用。 本当は定義したメソッドだけ書いておきたいのだけど、後々動作確認したいと思った時にコピペで済むので前処理等も書いておいた。 JavaScript function binarySearch(arr, target) { let head = 0, mid, tail = arr.length; while(head &lt;= tail){ mid = Math.floor((head + tail) / 2); if (arr[mid] === target) { return mid; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmo2i.hateblo.jp%2Fentry%2F2018%2F11%2F03%2F011123&quot; title=&quot;二分探索（binarySearch）を10種類の言語で書いてみた - プログラマの森（仮）&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>2018-11-03 01:11:23</published>
  <title>二分探索（binarySearch）を10種類の言語で書いてみた</title>
  <type>rich</type>
  <url>https://mo2i.hateblo.jp/entry/2018/11/03/011123</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
