摘要: Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Note: The input array will only contain 0 and 1. The length 阅读全文
posted @ 2018-03-17 20:58 还是说得清点吧 阅读(217) 评论(1) 推荐(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 the m 阅读全文
posted @ 2018-03-17 20:54 还是说得清点吧 阅读(368) 评论(1) 推荐(0) 编辑
摘要: 之前有刷过一些题,但都坚持不下去,现在搞个小博客,希望自己能坚持下去吧~~ In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with diff 阅读全文
posted @ 2018-03-17 20:49 还是说得清点吧 阅读(144) 评论(2) 推荐(0) 编辑