Microsoft interview question

Reverse words in a String

Interview Answers

Anonymous

5 Feb 2011

You have reverse the string and then reverse each word

Anonymous

5 Nov 2015

Another approach is to tokenize the string on the basis of space and then reverse each word