Epsilon Interview Question

Reverse a string without using any inbuilt functions

Interview Answer

Anonymous

Jan 19, 2017

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

1