C++ Easy to Understand 95% Space 95% Time
\nclass Solution {\npublic:\n    int orderOfLargestPlusSign(int N, vector<vector<int>>& mines) {\n        int temp[N][N];\n        for(int i=0;i<N;i++)\n       
```\nclass Solution {\npublic:\n    int orderOfLargestPlusSign(int N, vector<vector<int>>& mines) {\n        int temp[N][N];\n        for(int i=0;i<N;i++)\n        {\n            for(int j=0;j<N;j++)\n                temp[i][j]=N;\n        }\n        for(auto i:mines)temp[i[0]][i[1]]=0;\n        \n        for(int i=0;i<N;i++)\n        {\n            for(int j=0,k=N-1,u=0,d=0,l=0,r=0;j<N;j++,k--)\n            {\n                temp[i][j]=min(temp[i][j],u=(temp[i][j]==0?0:u+1));\n                temp[i][k]=min(temp[i][k],d=(temp[i][k]==0?0:d+1));\n                temp[j][i]=min(temp[j][i],l=(temp[j][i]==0?0:l+1));\n                temp[k][i]=min(temp[k][i],r=(temp[k][i]==0?0:r+1));\n            }\n        }\n        int res=0;\n        for(int i=0;i<N;i++)\n        {\n            for(int j=0;j<N;j++)\n                res=max(res,temp[i][j]);\n        }\n        return res;\n    }\n};\n```
[]