---
# System prepended metadata

title: 2562. Find the Array Concatenation Value
tags: [Leetcode, Easy]

---

# 2562. Find the Array Concatenation Value
###### tags: `Leetcode` `Easy`
Link: https://leetcode.com/problems/find-the-array-concatenation-value/description/
## Code
```python=
class Solution:
    def findTheArrayConcVal(self, nums: List[int]) -> int:
        l = 0
        r = len(nums)-1
        concatVal = 0
        while l<r:
            val = int(str(nums[l])+str(nums[r]))
            concatVal += val
            l+=1
            r-=1
        if l==r: concatVal += nums[l]
        return concatVal
```