'str' object does not support item assignment class Solution: def hasPath(self, grid, r, c, path): # write code here #r, c = len(grid), len(grid[0]) def dfs(i, j, p): print(i, j, p) if len(p) == 0: return True if not (0<=i<r and ...