编程题目:
原题:https://www.codewars.com/kata/consecutive-strings/train/cpp
题目描述:You are given an array strarr of strings and an integer k. Your task is to return the first longest string consisting of k consecutive strings taken in the array.
参考代码:
string longestConsec(vector<string> &strarr, int k)
{
//不满足条件的处理
if(strarr.size() == 0 || k>strarr.size() || k<0){
return ""<