You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand this wouldn't help since the problem is about reversing a worded string. This check in the beginning would have made more sense if the problem would have been about reversing characters in a string. Let me know if am missing anything?
if ( A.length() == 1) {
result = A;
return result;
}
above code can be added.
The text was updated successfully, but these errors were encountered: