[C++] Hash table
cpp\nvector<vector<int>> allCellsDistOrder(int rows, int cols, int rCenter, int cCenter) {\n\tvector<vector<vector<int>>> dis(199); // cells grouped by index as
```cpp\nvector<vector<int>> allCellsDistOrder(int rows, int cols, int rCenter, int cCenter) {\n\tvector<vector<vector<int>>> dis(199); // cells grouped by index as distance\n\tvector<vector<int>> ans;\n\tint d;\n\n\t// map distances\n\tfor(int i = 0; i < rows; ++i)\n\t\tfor(int j = 0; j < cols; ++j)\n\t\t\td = abs(i - rCenter) + abs(j - cCenter),\n\t\t\tdis[d].push_back({i, j});\n\n\t// retrieve cells by distance\n\tfor(auto &v: dis)\n\t\tfor(auto &p: v)\n\t\t\tans.push_back({p[0], p[1]});\n\n\treturn ans;\n}\n```
['C']