We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Okay! I am going to use to learn regex more. Anyone give me good sites for it?
Anyway, this is what i did:
I didn't find anyone using this type of code.
q=int(raw_input().strip())fora0inxrange(q):s=raw_input().strip()# your code goes herevalid='YES'x=s.find('h',0)foriin'ackerrank':#print i, xifx!=-1:x=s.find(i,x+1)else:valid='NO'breakprintvalid
Cookie support is required to access HackerRank
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 →
Okay! I am going to use to learn regex more. Anyone give me good sites for it?
Anyway, this is what i did:
I didn't find anyone using this type of code.