You are viewing a single comment's thread. Return to all comments →
string hackerrankInString(string s) { string searchStr = "hackerrank"; auto it = searchStr.begin(); for (int i=0; i<s.size(); ++i) { if(s[i] == *it) ++it; } if(it == searchStr.end()) return "YES"; return "NO"; }
Seems like cookies are disabled on this browser, please enable them to open this website
HackerRank in a String!
You are viewing a single comment's thread. Return to all comments →