{"provider_name":"Hatena Blog","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/uraway/","height":"190","title":"Palindrome Check (\u56de\u6587\u30c1\u30a7\u30c3\u30af) \u30a2\u30eb\u30b4\u30ea\u30ba\u30e0","version":"1.0","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Furaway.hatenablog.com%2Fentry%2F2019%2F11%2F18%2F201742\" title=\"Palindrome Check (\u56de\u6587\u30c1\u30a7\u30c3\u30af) \u30a2\u30eb\u30b4\u30ea\u30ba\u30e0 - \u6587\u7cfb\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["algorithm"],"author_name":"uraway","type":"rich","url":"https://uraway.hatenablog.com/entry/2019/11/18/201742","description":"Palindrome Check (\u56de\u6587\u30c1\u30a7\u30c3\u30af) \u30a2\u30eb\u30b4\u30ea\u30ba\u30e0 \u6587\u5b57\u5217string\u3092\u53d7\u3051\u53d6\u3063\u3066\u3001\u56de\u6587\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3002\u3059\u3079\u3066\u306e\u6587\u5b57\u3092\u6bd4\u8f03\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u3001\u3069\u3046\u3084\u3063\u3066\u3082\u8a08\u7b97\u91cf\u304c$O(n)$\u4ee5\u4e0a\u306b\u306a\u308b\u306f\u305a\u3002 \u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u5b9f\u88c5(1) $O(n)$ \u4e21\u7aef\u304b\u3089\u6587\u5b57\u304c\u7b49\u3057\u3044\u304b\u6bd4\u8f03\u3057\u3066\u3044\u304f: function isPalindrome(string) { let left = 0 let right = string.length - 1 let result = true while (left <= right) { if (string[left] === string[right]) {\u2026","width":"100%","blog_url":"https://uraway.hatenablog.com/","blog_title":"\u6587\u7cfb\u30d7\u30ed\u30b0\u30e9\u30de\u30fc","published":"2019-12-02 20:00:00"}