Epsilon interview question

Reverse a string without using any inbuilt functions

Interview Answer

Anonymous

19 Jan 2017

for(int i = 0; int j = string.size(); i < j; i++; j--) { swap(string[i], string[j]); }

1