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.
When I run my Ruby solution locally on test case 3 (having paid 5 hackos for it!), I get the expected output. However, there is a runtime error when I try to submit the code online. Any suggestions?
Detect the Domain Name
You are viewing a single comment's thread. Return to all comments →
When I run my Ruby solution locally on test case 3 (having paid 5 hackos for it!), I get the expected output. However, there is a runtime error when I try to submit the code online. Any suggestions?
Is it the same Ruby version as ours? as given on hackerrank.com/environment
There are differences in the regex engine across some of the recent versions. Also can you PM me the code.
thanks
Ah, I downloaded Ruby 2.0.0p451. I'll try again on 1.9.3 and see what needs fixing. Thanks!