Hacker News new | ask | show | jobs
by kevincox 3659 days ago
I'm pretty sure his implementation works on empty strings because `str[0].nil?`. So the comparison is false, giving the right (?) answer.