C++
\nclass Solution {\npublic:\n    long long findTheArrayConcVal(vector<int>& nums) {\n        deque<int> dq;\n        for(auto &it: nums) {\n            dq.push_
```\nclass Solution {\npublic:\n    long long findTheArrayConcVal(vector<int>& nums) {\n        deque<int> dq;\n        for(auto &it: nums) {\n            dq.push_back(it);\n        }\n        long long con = 0;\n        while(dq.size() > 0) {\n            if(dq.size() > 1) {\n                auto first = to_string(dq.front());\n                auto last = to_string(dq.back());\n                dq.pop_front();\n                dq.pop_back();\n                string temp = first + last;\n                con += stoi(temp);\n            }\n            else {\n                auto first = to_string(dq.front());\n                dq.pop_front();\n                string temp = first;\n                con += stoi(temp);\n            }\n        }\n        return con;\n    }\n};\n```
['C']