[Python3] simple
\nclass Solution:\n    def spiralMatrixIII(self, rows: int, cols: int, rStart: int, cStart: int) -> List[List[int]]:\n        res=[]\n        rowMin=rStart\n   
```\nclass Solution:\n    def spiralMatrixIII(self, rows: int, cols: int, rStart: int, cStart: int) -> List[List[int]]:\n        res=[]\n        rowMin=rStart\n        rowMax=rStart+1\n        colMin=cStart\n        colMax=cStart+1\n        while len(res)!=rows*cols:\n            \n            for col in range(colMin,colMax):\n                if 0<=col<cols and 0<=rowMin<rows: res.append([rowMin,col])\n            \n            for row in range(rowMin,rowMax):\n                if 0<=colMax<cols and 0<=row<rows: res.append([row,colMax])\n            \n            colMin-=1\n            \n            for col in range(colMax,colMin,-1):\n                if 0<=col<cols and 0<=rowMax<rows: res.append([rowMax,col])\n            \n            rowMin-=1\n            \n            for row in range(rowMax,rowMin,-1):\n                if 0<=colMin<cols and 0<=row<rows: res.append([row,colMin])\n            \n            colMax+=1\n            rowMax+=1\n        \n        return res\n```
[]