摘要: 1 class Solution: 2 def maxEvents(self, events: 'List[List[int]]') -> int: 3 events.sort(key=lambda item: (item[1], item[0])) 4 days = set() 5 for sta 阅读全文
posted @ 2020-02-16 19:00 Sempron2800+ 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1 class ProductOfNumbers: 2 def __init__(self): 3 self.matrix = [] 4 self.preproducts = [] 5 self.length = 0 6 self.zeros = set() 7 8 def add(self, nu 阅读全文
posted @ 2020-02-16 14:34 Sempron2800+ 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1 import bisect 2 class Solution: 3 def countNegatives(self, grid: 'List[List[int]]') -> int: 4 m = len(grid) 5 n = len(grid[0]) 6 sums = 0 7 for i in 阅读全文
posted @ 2020-02-16 13:39 Sempron2800+ 阅读(179) 评论(0) 推荐(0) 编辑