请教一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.