{"author_url":"https://blog.hatena.ne.jp/zehnpaard/","blog_url":"https://zehnpaard.hatenablog.com/","height":"190","type":"rich","title":"Thinking Functionally with Haskell\u52c9\u5f37\u30e1\u30e2: \u7b2c\uff16\u7ae0\uff14\u3000Maximum Segment Sum","width":"100%","blog_title":"Arantium Maestum","version":"1.0","author_name":"zehnpaard","categories":["Haskell","Thinking Functionally with Haskell"],"provider_name":"Hatena Blog","url":"https://zehnpaard.hatenablog.com/entry/2018/03/25/220433","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2018%2F03%2F25%2F220433\" title=\"Thinking Functionally with Haskell\u52c9\u5f37\u30e1\u30e2: \u7b2c\uff16\u7ae0\uff14\u3000Maximum Segment Sum - Arantium Maestum\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u7b2c\uff16\u7ae0\u306e\u6700\u5f8c\u306fJohn Bentley\u306eProgramming Pearls\u306b\u51fa\u3066\u304f\u308b\u300cMaximum Segment Sum\u300d\u3092\u4eca\u307e\u3067\u306e\u3088\u3046\u306a\u5f0f\u5909\u63db\u3068\u8a3c\u660e\u3067\u89e3\u304f\u3001\u3068\u3044\u3046\u6f14\u7fd2\u3002 Maximum Segment Sum\u554f\u984c \u3042\u308b\u30ea\u30b9\u30c8\uff08\u306f\u6574\u6570\uff09\u306e\u4e2d\u306b\u3042\u308b\u9023\u7d9a\u90e8\u5206\u306e\u548c\u306e\u6700\u5927\u5024\u3092\u6c42\u3081\u308b\u95a2\u6570mss\u3092\u5b9a\u7fa9\u305b\u3088 \u305f\u3060\u3057\u7a7a\u306e\u9023\u7d9a\u90e8\u5206\u306e\u548c\u306f0\u3060\u3068\u3059\u308b \u4f8b\u3048\u3070 mss [-1, 2, -3, 5, -2, 1, 3, -2, -2, -3, 6] = sum [5, -2, 1, 3] = 7 \u542b\u307e\u308c\u308b\u6574\u6570\u306f\u8ca0\u306e\u5024\u3092\u53d6\u308b\u3053\u3068\u304c\u3042\u308b\u304c\u3001mss\u306f\u8ca0\u306b\u306f\u306a\u3089\u306a\u3044\uff08\u7a7a\u30ea\u30b9\u30c8\u306e\u548c\u304c0\u306a\u306e\u3067\uff09\u3002 \u554f\u984c\u3092\u30b3\u30fc\u30c9\u3067\u8868\u73fe \u611a\u76f4\u306b\u2026","published":"2018-03-25 22:04:33","image_url":"https://chart.apis.google.com/chart?cht=tx&chl=%7BA%20%3D%20%28a_1%2C%20a_2%2C%20...%20a_n%29%7D"}