<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>s-takaya1027</author_name>
  <author_url>https://blog.hatena.ne.jp/s-takaya1027/</author_url>
  <blog_title>何かやってみるブログ</blog_title>
  <blog_url>https://takayasugiyama.com/</blog_url>
  <categories>
  </categories>
  <description>問題 https://leetcode.com/problems/longest-common-prefix/ 解いた # @param {String[]} strs # @return {String} def longest_common_prefix(strs) data = strs[0] result = &quot;&quot; data.chars.each_with_index do |char, index| if strs.all? { |str| str[index] == char} result += char else break end end result end 結果</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakayasugiyama.com%2Fentry%2F2022%2F03%2F08%2F202328&quot; title=&quot;LeetCode Longest Common Prefixを解いてみた - 何かやってみるブログ&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://cdn-ak.f.st-hatena.com/images/fotolife/s/s-takaya1027/20220308/20220308202313.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-03-08 20:23:28</published>
  <title>LeetCode Longest Common Prefixを解いてみた</title>
  <type>rich</type>
  <url>https://takayasugiyama.com/entry/2022/03/08/202328</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
