LeetCode
文章平均质量分 68
吾乃赵先生
世界在变化,技术在革新,如果你不想被淘汰,那么怎能停止学习的步伐?
展开
-
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 size but keep its original data. You’re given a matrix represented by a two原创 2018-01-12 14:40:38 · 200 阅读 · 0 评论 -
561. Array Partition I
Description: 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 sum of min(ai, bi) for all i from 1 to n as原创 2018-01-11 12:54:47 · 273 阅读 · 0 评论 -
442. Find All Duplicates in an Array
Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appear twice in this array. Could you do it with原创 2018-01-13 13:04:15 · 284 阅读 · 0 评论