On 05/02/2013 07:25 AM, Sasha Pachev wrote:
> OK, the gauntlet has been thrown.
>
> http://asksasha.com/strrev.c
>
> coded in 25 minutes.
Python version, coded in 1 minutes, well an extra minute to run the REPL
to make sure I had the slice syntax correct:
import sys
for x in sys.stdin:
print x[::-1]
Run time:
Never bothered to time it because, well, like others have said,
sometimes using the right tool for the job is better than premature
optimization in C.
/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/