每日一题 2023.10.12

2562. 找出数组的串联值 - 力扣(LeetCode)

大概思路:双指针 两端出发 即可

AC code:

class Solution {
public:
    long long findTheArrayConcVal(vector& nums) {
        long long res=0;
        int j=nums.size()-1;
        int i=0;
        while(i

你可能感兴趣的:(每日一题,算法,leetcode,数据结构,c++,c语言)