You are viewing a single comment's thread. Return to all comments →
Regex is so nice
Python 3
def hackerrankInString(s): if re.search(r'.*'.join([*"hackerrank"]), s): 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 →
Regex is so nice
Python 3