tag:blogger.com,1999:blog-6314876008291942531.post782198302063715689..comments2024-01-14T00:36:43.430-08:00Comments on Antonio Gulli's coding playground: Reverse a string, word by wordUnknownnoreply@blogger.comBlogger1125tag:blogger.com,1999:blog-6314876008291942531.post-67208874238127923652011-10-24T20:10:56.040-07:002011-10-24T20:10:56.040-07:00If understand the question correctly, considering ...If understand the question correctly, considering the post text as input - "make it inplace" should be transformed into "inplace it make".<br /><br />We can do it in two fold. Reverse the string by exchanging (1, n), (2, n-1), so on. Using space as delimiter, reverse each word of reversed string by exchange approach.<br /><br />Is there any other approach?Anonymoushttps://www.blogger.com/profile/09855100606552890649noreply@blogger.com