1class Solution {2 public:3 int maxRepeating(string sequence, string word) {4 int k = 0;5 string temp = word;67 while (sequence.find(temp) != string::npos) {8 temp += word;9 k++;10 }1112 return k;13 }14};
WPM •0 •0
ACC •0 •0
TIME •0