题目来源: https://leetcode.com/problems/unique-paths-iii/ 自我感觉难度/真实难度: 题意: 分析: 回溯法,直接DFS就可以了 自己的代码: class Solution: def uniquePathsIII(self, grid: List[List[int]]) -> int: res=0 n=len(grid) m=len(grid[0]) for i in range(n): for j in range(m): if grid[i][…