C++ 0 ms
\nclass Solution {\npublic:\n    vector<int> mostVisited(int n, const vector<int>& rounds) {\n        \n        vector<int> res;\n        int start=*rounds.begi
```\nclass Solution {\npublic:\n    vector<int> mostVisited(int n, const vector<int>& rounds) {\n        \n        vector<int> res;\n        int start=*rounds.begin();\n        int finish=*rounds.rbegin();\n        \n        if(start < finish) {\n            for(int i=start; i<=finish; ++i) res.push_back(i);\n        }\n        else if(start > finish){\n            for(int i=1; i<=finish; ++i) res.push_back(i);\n            for(int i=start; i<=n; ++i) res.push_back(i);\n        }\n        else res.push_back(start);\n        \n        return res;   \n    }\n};\n```
['C']