思路1

如果这道题用语言库或语言特性,就失去了考察的意义

1 reverse whole str 2 reverse each word 3 clean spaces

Last updated