Microsoft Interview Question

Write a C++ code to reverse the order of words in a string, without using any additional buffer.

Interview Answer

Anonymous

Feb 23, 2011

1. Flip the entire string 2. Flip each word of the reversed string.

6