Comment on Retiring a Great Interview ProblemparentComments−saucetenuto15yrfumani gave one reason: it won't produce the right answer. Here's another: your regex engine will probably fall over dead if you ask it apply a million-word alternation.−eru15ygrep could be fine. I wouldn't trust backtracking regex engines, though.
Comments
rfumani gave one reason: it won't produce the right answer. Here's another: your regex engine will probably fall over dead if you ask it apply a million-word alternation.
grep could be fine. I wouldn't trust backtracking regex engines, though.