You are viewing a single comment's thread. Return to all comments →
import re def hackerrankInString(s): return ('YES' if re.search(r'.*h.*a.*c.*k.*e.*r.*r.*a.*n.*k.*', s) else 'NO')
I think you do not need to use for loop because it automatically iterate.
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 →
I think you do not need to use for loop because it automatically iterate.