随笔分类 -  LeetCode

摘要:题目: 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 阅读(100) 评论(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 阅读(118) 评论(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 阅读(99) 评论(0) 推荐(0) 编辑
摘要:1 题目: Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes s 阅读全文
posted @ 2018-04-12 11:31 Zhao_Gang 阅读(143) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示