Why my output is wrong ? :(
Input: " "
Output: " "
"Could the input string contain leading or trailing spaces?
Yes. However, your reversed string should not contain leading or trailing spaces."
I got same problem, I try to cout<<s, and nothing on console, but it still shows:
Input: " " Output: " " Expected: ""
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.