請教一ALGORITHM問題

來源: 2009-03-03 22:50:29 [舊帖] [給我悄悄話] 本文已被閱讀:

Someone with deep IT background please help -
Implement an efficient algorithm to reverse a string using java (ie, string "nice to see you!" becomes "you! see to nice"). I did it with StringBuilder and tested it with a string containing as many as 3 million words; it wasn't fast.