LeetCode
whoknowgyk
这个作者很懒,什么都没留下…
展开
-
【LeetCode】Problem867. 转置矩阵
题目链接:https://leetcode-cn.com/problems/transpose-matrix/description/ 思路:直接翻转 class Solution { public int[][] transpose(int[][] A) { int row=A.length; int coloum=A[0].lengt...原创 2018-08-06 13:56:36 · 517 阅读 · 0 评论 -
【LeetCode】Problem561. 数组拆分 I
题目链接:https://leetcode-cn.com/problems/array-partition-i/description/ 思路:选择第奇数个即可 class Solution { public int arrayPairSum(int[] nums) { //the sum of the mins int sum=0;...原创 2018-08-06 15:39:19 · 106 阅读 · 0 评论