You are viewing a single comment's thread. Return to all comments →
very simple using regular expression
import re def hackerrankInString(s): if re.search(r'h.*a.*c.*k.*e.*r.*r.*a.*n.*k.*',s): 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 →
very simple using regular expression