You are viewing a single comment's thread. Return to all comments →
def hackerrankInString(s): # Write your code here
fs = 'hackerrank' if len(s) < len(fs): return 'NO' for i in range(len(fs)): for c in s: if c == fs[i]: i +=1 if i == len(fs): 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 →
def hackerrankInString(s): # Write your code here