1. 首页
  2. 数据库
  3. 其它
  4. 《剑指Offer》刷题笔记——面试题13. 机器人的运动范围

《剑指Offer》刷题笔记——面试题13. 机器人的运动范围

上传者: 2021-02-01 07:22:32上传 PDF文件 100KB 热度 4次
难度:中等 一、题目描述: 二、解题分析: 1、剑指解析: 2、测试用例: 3、代码实现 I、回溯法 class Solution: def movingCount(self, m: int, n: int, k: int) -> int: self.discoveryed_plots = [] matrix = [[*] * n] * m self.discovery(matrix, 0, 0, k) return len(self.discoveryed_plots) discoveryed_plot
下载地址
用户评论