🎯✅Simple Code✅Beats 97.26% Leetcoders ✅Easiest code🎯🎯
Approach\njust make result[] array of size double than nums[].\ntake 2 variables i,j.\nstart i from 0 & j from nums.length,\nthen just store nums[i] at i\'th an
# Approach\njust make result[] array of size double than nums[].\ntake 2 variables i,j.\nstart i from 0 & j from nums.length,\nthen just store nums[i] at i\'th and j\'th position in result array.\n\n# Code\n```java []\nclass Solution {\n    public int[] getConcatenation(int[] nums) {\n        int n = 2*nums.length;\n        int result[]=new int[n];\n        int j=nums.length;\n        for(int i=0;i<nums.length;i++){ \n            result[i]=nums[i];\n            result[j]=nums[i];\n            j++; \n        }\n        \n        return result;\n    }\n}\n```
['Java']