C++ easy simulate process
\nvector<int> mostVisited(int n, vector<int>& rounds) {\n\tmap<int, int> freq;\n\tint curSector = rounds[0], curMax = 1;\n\tfreq[rounds[0]]++;\n\tfor (int i = 1
```\nvector<int> mostVisited(int n, vector<int>& rounds) {\n\tmap<int, int> freq;\n\tint curSector = rounds[0], curMax = 1;\n\tfreq[rounds[0]]++;\n\tfor (int i = 1; i < rounds.size(); i++) {\n\t\twhile (curSector != rounds[i]) {\n\t\t\tcurSector = (curSector + 1 <= n) ? curSector + 1 : 1;\n\n\t\t\tfreq[curSector]++;\n\t\t\tcurMax = max(curMax, freq[curSector]);\n\t\t}\n\t}\n\tvector<int> res {};\n\tfor (auto f : freq)\n\t\tif (f.second == curMax)\n\t\t\tres.push_back(f.first);\n\treturn res;\n}\n```\n
['C', 'C++']