摘要: [抄题]: Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: [暴力解法]: 用temp,result,结果发现写起来很麻烦 时间分析: 空间分析: [优化后]: 时间分 阅读全文
posted @ 2018-04-20 22:11 苗妙苗 阅读(166) 评论(0) 推荐(0)
摘要: [抄题]: A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element. Now given an M x N matrix, return True if and only if 阅读全文
posted @ 2018-04-20 21:05 苗妙苗 阅读(601) 评论(0) 推荐(0)