摘要:
Say you have an array for which the i-th element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may compl 阅读全文
posted @ 2019-10-10 12:00
Schwifty
阅读(180)
评论(0)
推荐(0)
摘要:
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. Example: 把每一列看成histogram,就可以得到4个 阅读全文
posted @ 2019-10-10 09:00
Schwifty
阅读(148)
评论(0)
推荐(0)

浙公网安备 33010602011771号