4 ms·
You mean ' '.join(the_string.split()[::-1]). Which is a totally reasonable thing to do, but doesn't exercise the same kind of thinking as doing it letter by le
by kragen 14y ago
You mean ' '.join(the_string.split()[::-1]). Which is a totally reasonable thing to do, but doesn't exercise the same kind of thinking as doing it letter by letter. Can you solve it letter by letter, even now that you're not in an interview?
- freework 14y agoDoesn't exercise the same kind of thinking as doing it letter by letter? So what? Solving this problem in haskell doesn't show the same kind of thinking as solving it in PHP, whats your point? You basically saying you have to solve this problem they way I say you have to. Thats a sure-fire way to tell if the company is worth working for or not.
- kragen 14y agoMy point is that there's a difference between the knowledge of how to call a library function and the knowledge of how to write one. It appears that you lack both.