Two pointers Python 3 solution
\n\nclass Solution:\n    def findTheArrayConcVal(self, nums: List[int]) -> int:\n        result = 0\n\n        p1 = 0\n        p2 = len(nums) - 1\n\n        whi
\n```\nclass Solution:\n    def findTheArrayConcVal(self, nums: List[int]) -> int:\n        result = 0\n\n        p1 = 0\n        p2 = len(nums) - 1\n\n        while p1 <= p2:\n            if p1 == p2:\n                result += int(nums[p1])\n\n            else:\n                result += int(str(nums[p1]) + str(nums[p2]))\n\n            p1 += 1\n            p2 -= 1\n\n        return result\n```
['Two Pointers', 'Python3']