You are viewing a single comment's thread. Return to all comments →
Here is my Python solution!
def hackerrankInString(s): index = 0 string = "hackerrank" for i in range(len(s)): if s[i] == string[index]: index += 1 if index == len(string) - 1: 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 →
Here is my Python solution!