Find the Array Concatenation Value Solution in C++
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:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\nO(n)\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\nO(1)\n# Code\n```\nclass Solution {\npublic:\n    long long findTheArrayConcVal(vector<int>& nums) {\n        int i;\n        long long int ans=0;\n        string s="";\n        for(i=0 ; i<nums.size()/2 ; i++)\n        {\n            s = to_string(nums[i]) + to_string(nums[nums.size()-i-1]);\n            ans += stoi(s);\n        }\n        if(nums.size()%2==1)\n        {\n            ans += nums[nums.size()/2];\n        }\n        return ans;\n    }\n};\n```
['C++']