You are viewing a single comment's thread. Return to all comments →
Python without regex:
def hackerrankInString(s): sub = "hackerrank" j = 0 for p in s: if p == sub[j]: j+=1 if j == len(sub): 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 →
Python without regex: