摘要: Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: 阅读全文
posted @ 2018-07-04 21:04 The_Silencer 阅读(87) 评论(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 data. 阅读全文
posted @ 2018-07-03 21:48 The_Silencer 阅读(121) 评论(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 the m 阅读全文
posted @ 2018-07-03 21:05 The_Silencer 阅读(104) 评论(0) 推荐(0)
摘要: 从基础题目入手,按类别,写每个题,记录疑问与收获。 1. Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may 阅读全文
posted @ 2017-12-01 21:18 The_Silencer 阅读(177) 评论(0) 推荐(0)