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.