摘要: 题目: 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 len 阅读全文
posted @ 2018-04-13 13:20 Zhao_Gang 阅读(98) 评论(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 t 阅读全文
posted @ 2018-04-13 10:06 Zhao_Gang 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 题目: In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original d 阅读全文
posted @ 2018-04-13 09:43 Zhao_Gang 阅读(96) 评论(0) 推荐(0) 编辑