Unleash Ultimate Efficiency: 100% Beat - 3-Line Wonder Solution! 🔥
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:O(n)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:O(1)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    void rotate(vector<int>& v, int k) {\n        int a =k%v.size();\n        reverse(v.begin(),v.end());\n        reverse(v.begin(),v.begin()+a);\n        reverse(v.begin()+a,v.end());\n    }\n};\n```\n\n****"If you appreciate it, kindly give it an Upvote! Your support means a lot!"\uD83D\uDE80****
['C++']