Wrong test case

  • 1

    Why my output is wrong ? :(

    Input: " "
    Output: " "
    Expected: ""

  • 1

    Clarification says:
    "Could the input string contain leading or trailing spaces?
    Yes. However, your reversed string should not contain leading or trailing spaces."

  • 0

    I got same problem, I try to cout<<s, and nothing on console, but it still shows:
    Input: " " Output: " " Expected: ""

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.