You are viewing a single comment's thread. Return to all comments →
Simple solution in Typescript with regex
function hackerrankInString(s: string): string { return !!s.match(/h.*a.*c.*k.*e.*r.*r.*a.*n.*k.*/) ? 'YES' : '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 →
Simple solution in Typescript with regex