1class Solution {2 public:3 bool isPrefixString(string s, vector<string> &words) {4 string n = "";5 for (string str : words) {6 for (char ch : str) {7 n += ch;8 }9 if (n == s) {10 return true;11 }12 }1314 return false;15 }16};
WPM •0 •0
ACC •0 •0
TIME •0