Easy To Understand C++ !!
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n- I\'ve used two loops in which -\n- first loop will fill the ans array w
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n- I\'ve used two loops in which -\n- first loop will fill the `ans` array with all values of `nums`;\n- Ans in second loop copy again all `nums` values in `ans` array again ;\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity: O(n+n) = O(n)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity: O(n)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n`Upvote! It only takes 1 click :)`\n\n\n# Code\n```\nclass Solution {\npublic:\n    vector<int> getConcatenation(vector<int>& nums) {\n        vector<int> ans;\n        for (int i=0;i<nums.size();i++){\n            ans.push_back(nums[i]);\n        }\n        for(int i=0;i<nums.size();i++){\n            ans.push_back(nums[i]);\n        }\n        return ans;\n    }\n};\n```\n![Upvote.jpeg](https://assets.leetcode.com/users/images/dc38eb8c-b779-4d87-8ecd-d4a0b6bf5479_1680111912.3854246.jpeg)
['C++']