![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程基础-数组
小郭不背锅
这个作者很懒,什么都没留下…
展开
-
twoSum
1. Two Sum Average Rating: 4.82 (1116 votes) March 5, 2016 | 558.9K views Given an array of integers, return indices of the two numbers such that they add up to a specific target. ...原创 2018-03-16 10:18:23 · 95 阅读 · 0 评论 -
顺时针打印矩阵
题目描述 对于一个矩阵,请设计一个算法从左上角(mat[0][0])开始,顺时针打印矩阵元素。 给定int矩阵mat,以及它的维数nxm,请返回一个数组,数组中的元素为矩阵元素的顺时针输出。 测试样例: [[1,2],[3,4]],2,2 返回:[1,2,4,3]//这个写的太巧妙了,不是我写的,是看牛客上的一个人写的import java.util.*; public class Prin...原创 2018-05-02 09:54:17 · 146 阅读 · 0 评论