# 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 ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up