<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>summer_tree</author_name>
  <author_url>https://blog.hatena.ne.jp/summer_tree/</author_url>
  <blog_title>summer_tree_home</blog_title>
  <blog_url>https://py3.hateblo.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>CheckiO</anon>
  </categories>
  <description>どんな問題？ 2問目は、メディアン（中央値）を求めるというもの。例を見てみよう。 checkio([1, 2, 3, 4, 5]) == 3 checkio([3, 1, 2, 5, 3]) == 3 checkio([1, 300, 2, 200, 1]) == 2 checkio([3, 6, 20, 99, 10, 15]) == 12.5全ての要素の中央値を求めればいい。平均値じゃないぞ。 どうやって解くか？ まず、リストを小さい順に並べてから、中央の要素を取り出せばよい。 リストを小さい順に並べるのは、単純にsort()すれば良い。そして、要素数が奇数ならリスト真ん中の要素を取得する…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpy3.hateblo.jp%2Fentry%2F2014%2F02%2F15%2F142054&quot; title=&quot;Median (Check iO &amp;gt; Home) - summer_tree_home&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>2014-02-15 14:20:54</published>
  <title>Median (Check iO &gt; Home)</title>
  <type>rich</type>
  <url>https://py3.hateblo.jp/entry/2014/02/15/142054</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
