摘要: 1、不同路径 I:来源LeetCode62题 一个机器人位于一个 m x n 网格的左上角 (起始点在下图中标记为“Start” )。 机器人每次只能向下或者向右移动一步。机器人试图达到网格的右下角(在下图中标记为“Finish”)。 问总共有多少条不同的路径? 例如,上图是一个7 x 3 的网格。 阅读全文
posted @ 2018-05-02 19:29 Fintech带你飞 阅读(1331) 评论(0) 推荐(0) 编辑
摘要: 螺旋矩阵1:来源LeetCode54题 Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. Example 1: Example 2: mat 阅读全文
posted @ 2018-05-02 14:42 Fintech带你飞 阅读(860) 评论(0) 推荐(0) 编辑