Bloomberg interview question

Reverse a string.

Interview Answers

Anonymous

Jan 23, 2015

string reverseString(string str){ int front = 0; int back = str.size( ); while(front > end){ char temp = str[front]; str[front] = str[back]; str[back] = temp; ++front; --back; } }

Anonymous

Feb 27, 2013

How long did it take for them to respond that you were rejected?