C++ || power of STL || MULTIMAP
```\nvector> allCellsDistOrder(int rows, int cols, int rCenter, int cCenter) {\n        multimap>mm;\n        vector>ans;\n        for(int i=0;i>(dist,pair\(i,j
```\nvector<vector<int>> allCellsDistOrder(int rows, int cols, int rCenter, int cCenter) {\n        multimap<int,pair<int,int>>mm;\n        vector<vector<int>>ans;\n        for(int i=0;i<rows;i++)\n            for(int j=0;j<cols;j++){\n                int dist=abs(rCenter-i)+abs(cCenter-j);\n                mm.insert(pair<int,pair<int,int>>(dist,pair<int,int>(i,j)));\n            }\n        auto itr=mm.begin();\n       while(itr!=mm.end()){\n           vector<int>temp(2);\n           temp[0]=(itr->second.first);\n           temp[1]=(itr->second.second);\n           ans.push_back(temp);\n           itr++;\n       }\n        return ans;\n    }\n\t\n\tFEEL FREE TO ASK DOUBTS.......\n\tPLEASE UPVOTE IF YOU LEARN SOMETHING NEW!!!!!
['C']