You are viewing a single comment's thread. Return to all comments →
def hackerrankInString(s): Match_String = "hackerrank" j = 0 for i in range(len(s)): if(j<len(Match_String) and s[i] == Match_String[j] ): j = j + 1 if(j == len(Match_String)): return "YES" else : 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 →