摘要:
一、前言 二、题717 1-bit and 2-bit Characters We have two special characters. The first character can be represented by one bit 0. The second character can b 阅读全文
摘要:
一、前言 二、题695 Max Area of Island Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directional 阅读全文
摘要:
一、前言 二、题485 Max Consecutive Ones Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Note: The input array will 阅读全文
摘要:
一、前言 二、题566 Reshape the Matrix In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different s 阅读全文
摘要:
一、前言 二、题561 Array Partition I Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ... 阅读全文