Xtreme Labs interview question

Given a string containing many words, reverse the word order without allocation any additional memory.

Interview Answer

Anonymous

27 Jun 2013

1. Reverse all characters in the Array. 2. Reverse the characters in each word.