✅Python3 || C++✅ Beats 100%
\n\n# Please UPVOTE \uD83D\uDE0A\n\n## Python3\n\nclass Solution:\n    def findTheArrayConcVal(self, nums: List[int]) -> int:\n        ans=0\n        if len(num
![image.png](https://assets.leetcode.com/users/images/97448e20-1444-421c-ada6-51d7e2994250_1676206707.161385.png)\n\n# Please UPVOTE \uD83D\uDE0A\n\n## Python3\n```\nclass Solution:\n    def findTheArrayConcVal(self, nums: List[int]) -> int:\n        ans=0\n        if len(nums)%2==1:\n            ans=nums[len(nums)//2]\n        for i in range(len(nums)//2):\n            ans+=int(str(nums[i])+str(nums[len(nums)-1-i]))\n        return ans\n        \n```\n## C++\n```\nclass Solution {\npublic:\n    long long findTheArrayConcVal(vector<int>& nums) {\n        long long int n=nums.size(),ans=0;\n        if(n%2){\n            ans=nums[n/2];\n        }\n        for(int i=0;i<n/2;i++){\n            int y=nums[n-1-i],x=nums[i];\n            while(y){\n                x*=10;\n                y/=10;\n            }\n            x+=nums[n-i-1];\n            ans+=x;\n        }\n        return ans;\n\n    }\n};\n```\n\n
['Python3']