HackerRank in a String!

  • + 2 comments

    Ruby Solution is a nice one-liner

    puts s.match(/.*h.*a.*c.*k.*e.*r.*r.*a.*n.*k/) ? "YES" : "NO"