Tony's Log

Algorithms, Distributed System, Machine Learning

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

My first thought made it unnecessarily difficult. Well, the correct solution falls into a typical pattern: use DP to calc cumulative results of each cell, and then we use a sliding window to find max rect btw. 2 given rows.

https://www.hackerrank.com/challenges/mr-k-marsh/editorial

posted on 2015-07-14 05:02  Tonix  阅读(512)  评论(0编辑  收藏  举报