String reversal in place
Anonymous
Assume that s is the string. Here is a C++ like solution: end= s.length()-1; first=0; While (first <= end) { t=s[first]; s[first] = s[end]; s[end] = t; first++; end— }
Check out your Company Bowl for anonymous work chats.