摘要: 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 down or right at any p 阅读全文
posted @ 2019-09-13 23:04 琴影 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. Example 1: Example 2: 思路:d 阅读全文
posted @ 2019-09-13 00:31 琴影 阅读(198) 评论(0) 推荐(0) 编辑