<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>smileruby</author_name>
  <author_url>https://blog.hatena.ne.jp/smileruby/</author_url>
  <blog_title>smilerubyのブログ</blog_title>
  <blog_url>https://smileruby.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>お題</anon>
  </categories>
  <description>お題：文字列を先頭から見て同じところまで除去 - No Programming, No Life rubyで回答 # coding: CP932 require &quot;rspec&quot; def shift_same_str(*args) args.map(&amp;:chars).map(&amp;:to_a).tap do |x| x.min_by(&amp;:count).dup.each {|s| x.each(&amp;:shift) if x.all?{|a| a.first.eql?(s)}} end.map!(&amp;:join) end describe &quot;shift_same_str&quot; do context &quot;with …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsmileruby.hatenablog.com%2Fentry%2F20110815%2F1313374904&quot; title=&quot;お題：文字列を先頭から見て同じところまで除去 - smilerubyのブログ&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>2011-08-15 11:21:44</published>
  <title>お題：文字列を先頭から見て同じところまで除去</title>
  <type>rich</type>
  <url>https://smileruby.hatenablog.com/entry/20110815/1313374904</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
