you may think it's silly, it's fast

来源: 2009-03-04 21:56:38 [旧帖] [给我悄悄话] 本文已被阅读:

pseudo code:

copy the input array reversely to output;
go through the output array and reverse the characters in each word.