<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>sandect (sandect)</title>
    <link>https://ruby-china.org/sandect</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>看看这道题怎么做, $SAFE=4</title>
      <description>&lt;p&gt;&lt;a href="http://www.alphasights.com/careers/apply/hong-kong/ruby-on-rails-developer" rel="nofollow" target="_blank"&gt;http://www.alphasights.com/careers/apply/hong-kong/ruby-on-rails-developer&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A local variable named log contains an array of hashes with timestamped events like so
log = [
  {time: 201201, x: 2},
  {time: 201201, y: 7},
  {time: 201201, z: 2},
  {time: 201202, a: 3},
  {time: 201202, b: 4},
  {time: 201202, c: 0}
]&lt;/p&gt;

&lt;p&gt;Please collapse the log by date into an array of hashes containing one entry per day
[
  {time: 201201, x: 2, y: 7, z: 2},
  {time: 201202, a: 3, b: 4, c: 0},
]&lt;/p&gt;

&lt;p&gt;Ordering in the input is not defined. Ordering in the result is not important. Do not rely on the names of the hash keys other than :time. The field below executes your code in a Sandbox with $SAFE=4, so you can't define new classes, use global variables, etc.&lt;/p&gt;</description>
      <author>sandect</author>
      <pubDate>Thu, 20 Mar 2014 20:04:29 +0800</pubDate>
      <link>https://ruby-china.org/topics/18050</link>
      <guid>https://ruby-china.org/topics/18050</guid>
    </item>
  </channel>
</rss>
