Find the Array Concatenation Value Problem
Find the Array Concatenation Value Problem — ExecCode Easy DSA Practice
Solve the Find the Array Concatenation Value problem on ExecCode. Free online easy DSA practice in Arrays - Logic Building. Write and run code in Java, C++, Python — no signup required to run.
Problem description
Description You are given a 0-indexed integer array nums. Your task is to compute the required answer and return the concatenation value of nums . The concatenation of two numbers is the number formed by concatenating their numerals. - For example, the concatenation of 15, 49 is 1549. The concatenation value of nums is initially equal to 0. Perform this operation until nums becomes empty:.
Examples
Input {"nums": [7, 52, 2, 4]}; Output 596. Input {"nums": [5, 14, 13, 8, 12]}; Output 673
Constraints
1 <= nums.length <= 1000 1 <= nums[i] <= 10^4
Practice Find the Array Concatenation Value free on ExecCode. Browse DSA problems, topic map, and placement guides.