[Python] DP
Python\nclass Solution:\n    def orderOfLargestPlusSign(self, N: int, mines: List[List[int]]) -> int:\n        mines = set(tuple(i) for i in mines)\n        dp 
```Python\nclass Solution:\n    def orderOfLargestPlusSign(self, N: int, mines: List[List[int]]) -> int:\n        mines = set(tuple(i) for i in mines)\n        dp = [[[0,0,0,0] for i in range(N+2)] for j in range(N+2)]\n        for i in range(1,N+1):\n            for j in range(1,N+1):\n                if (i-1, j-1) not in mines:\n                    dp[i][j][0] = dp[i][j-1][0] + 1\n                    dp[i][j][1] = dp[i-1][j][1] + 1\n        for i in range(N,0,-1):\n            for j in range(N,0,-1):\n                if (i-1, j-1) not in mines:\n                    dp[i][j][2] = dp[i][j+1][2] + 1\n                    dp[i][j][3] = dp[i+1][j][3] + 1     \n        return max(min(j) for i in dp for j in i)\n```
[]