leetcode 54 : Spiral Matrix
2015-07-10 10:33
330 查看
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.
For example,
Given the following matrix:
You should return
For example,
Given the following matrix:
[ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ]
You should return
[1,2,3,6,9,8,7,4,5].
相关文章推荐
- C# 目录(文件夹)复制实现
- for test test test
- iOS 7原生二维码扫描中文gbk编码乱码的解决
- SAPUI5-HTML
- oracle中的exists和not exists和in用法详解
- iOS编程 界面布局 纯代码 VFL编写和添加 左右两个view,按比例设置大小
- math.h中一些常用函数
- 学习Java Web开发[1]可上传图片的客户端开发
- VOJ 1067 Warcraft III 守望者的烦恼 (矩阵高速功率+dp)
- 转载:Android 如何解决dialog弹出时无法捕捉Activity的back事件
- C#数据库的三种连接方式
- Builder模式——设计模式学习
- 生产订单的 lock 与 unlock
- Python使用时间戳
- Android Robtium ActivityUtils
- Windows使用bat批处理实现守护进程脚本分享
- 政企云计算信息化发展转变
- Linux下内存统计和内存泄露类问题的定位方法
- Qt 的一些心得(背景设置,圆角,半透明)
- handlebars的使用