<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rochefort</author_name>
  <author_url>https://blog.hatena.ne.jp/rochefort/</author_url>
  <blog_title>rochefort's blog</blog_title>
  <blog_url>https://rochefort.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>1時間以内に解けなければプログラマ失格となってしまう5つの問題が話題に を解いてみた。 一応1時間以内にできたけど、あまり綺麗ではない。 問題1〜3は簡単なので省略。 問題4 正の整数のリストを与えられたとき、数を並び替えて可能な最大数を返す関数を記述せよ。 例えば、[50, 2, 1, 9]が与えられた時、95021が答えとなる #!/usr/bin/env ruby def max_combination(ar) ar.sort { |x, y| &quot;#{y}#{x}&quot; &lt;=&gt; &quot;#{x}#{y}&quot; } end ar = [50, 2, 1, 9] max_combination(ar).j…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frochefort.hatenablog.com%2Fentry%2F2015%2F06%2F17%2F001020&quot; title=&quot;Re: 1時間以内に解けなければプログラマ失格となってしまう5つの問題が話題に - rochefort&amp;#39;s blog&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>2015-06-17 00:10:20</published>
  <title>Re: 1時間以内に解けなければプログラマ失格となってしまう5つの問題が話題に</title>
  <type>rich</type>
  <url>https://rochefort.hatenablog.com/entry/2015/06/17/001020</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
