<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uraway</author_name>
  <author_url>https://blog.hatena.ne.jp/uraway/</author_url>
  <blog_title>文系プログラマー</blog_title>
  <blog_url>https://uraway.hatenablog.com/</blog_url>
  <categories>
    <anon>algorithm</anon>
  </categories>
  <description>Palindrome Check (回文チェック) アルゴリズム 文字列stringを受け取って、回文かどうかをチェックする。すべての文字を比較しないといけないので、どうやっても計算量が$O(n)$以上になるはず。 アルゴリズム実装(1) $O(n)$ 両端から文字が等しいか比較していく: function isPalindrome(string) { let left = 0 let right = string.length - 1 let result = true while (left &lt;= right) { if (string[left] === string[right]) {…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Furaway.hatenablog.com%2Fentry%2F2019%2F11%2F18%2F201742&quot; title=&quot;Palindrome Check (回文チェック) アルゴリズム - 文系プログラマー&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>2019-12-02 20:00:00</published>
  <title>Palindrome Check (回文チェック) アルゴリズム</title>
  <type>rich</type>
  <url>https://uraway.hatenablog.com/entry/2019/11/18/201742</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
