摘要: Rain Terraces (Trapping Rain Water) Problem Given an array of non-negative integers representing terraces in an elevation map where the width of each 阅读全文
posted @ 2019-03-15 11:51 Archer-Fang 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Unique Paths Problem A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either d 阅读全文
posted @ 2019-03-15 10:58 Archer-Fang 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 斐波那契数列:0 1 1 2 3 5 8 13 21... 给出一个n,求数组。 代码如下: 阅读全文
posted @ 2019-03-15 10:42 Archer-Fang 阅读(111) 评论(0) 推荐(0) 编辑