{"provider_url":"https://hatena.blog","title":" \u30d0\u30a4\u30ca\u30ea\u30c4\u30ea\u30fc\u306e\u518d\u8a2d\u8a08","categories":["Ruby"],"image_url":null,"height":"190","width":"100%","blog_title":"\u8da3\u5473\u7684\u306b\u3063\u304d","provider_name":"Hatena Blog","author_name":"ha-tan","author_url":"https://blog.hatena.ne.jp/ha-tan/","description":"\u65e5\u672cRuby\u306e\u4f1a \u516c\u5f0fWiki - Ruby\u52c9\u5f37\u4f1a\uff20\u95a2\u897f-17\u3067\u6dfb\u524a\u3057\u3066\u3044\u305f\u30d0\u30a4\u30ca\u30ea\u30c4\u30ea\u30fc\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4ed5\u69d8\u306e\u7d99\u627f\u3092\u3042\u304d\u3089\u3081\u3066\u518d\u8a2d\u8a08\u3057\u305f\u3089\u3069\u3046\u306a\u308b\u304b\u306a\u3068\u601d\u3063\u3066\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u3069\u3053\u3068\u306a\u304f\u95a2\u6570\u578b\u306e\u306b\u304a\u3044\u304c\u3057\u307e\u3059\u3002 module BinaryTree def to_tree(ns) ns.inject(Node.new) {|tree, n| tree << n } end module_function :to_tree class Node def initialize(data = nil) @data = data @left = nil @right = nil end def <<(da\u2026","url":"https://ha-tan.hatenadiary.org/entry/20070717/1184710486","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fha-tan.hatenadiary.org%2Fentry%2F20070717%2F1184710486\" title=\" \u30d0\u30a4\u30ca\u30ea\u30c4\u30ea\u30fc\u306e\u518d\u8a2d\u8a08 - \u8da3\u5473\u7684\u306b\u3063\u304d\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2007-07-17 07:14:46","blog_url":"https://ha-tan.hatenadiary.org/","version":"1.0"}