Simple C++| | string to int | | int to string conversion
\n# Approach\nuse two pointer technique to solve the problem\n Describe your approach to solving the problem. \n\n# Complexity\n- Time complexity: O(n*n)\n Add 
\n# Approach\nuse two pointer technique to solve the problem\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity: O(n*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# Code\n```\nclass Solution {\npublic:\n    long long findTheArrayConcVal(vector<int>& nums) {\n        string s="";\n        long long ans=0;\n        int n=nums.size();\n         int st=0,e=n-1;\n        if(n==1){\n            return nums[0];\n        }\n        while(st<e){\n            s+=to_string(nums[st]);\n            s+=to_string(nums[e]);\n            int yk=stoi(s);\n            ans+=yk;\n            s="";\n            st++;e--;\n        }\n        st=0;e=n-1;\n        if(n&1){\n            int mid=(st+e)/2;\n        return ans+nums[mid];\n        }\n        else{\n            return ans;\n        }\n    }\n};\n```
['C++']