You are viewing a single comment's thread. Return to all comments →
Simple Python function to solve this:
def hackerrankInString(s): # Complete this function p = 0 for e in 'hackerrank': if e in s[p:]: p = s.index(e,p) + 1 else: return 'NO' return 'YES'
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 →
Simple Python function to solve this: