You are viewing a single comment's thread. Return to all comments →
Ruby Solution is a nice one-liner
puts 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 →
Ruby Solution is a nice one-liner