摘要: https://leetcode.com/problems/longest-well-performing-interval/ 将满足条件的视为+1,不满足的视为-1,计算前缀和。该题可以转换为计算和大于0的最小区间。 class Solution { public: int longestWPI( 阅读全文
posted @ 2020-02-08 00:53 fish1996 阅读(182) 评论(0) 推荐(0)