Why is this happening?

  • 0

    Input: 4
    Output: "1211"
    Expected: "1211"

    why my answer is wrong?
    the OutPut seems right!!

  • 0

    I got this too on a Mac. Same code copy and pasted to Firefox on Windows and it passed. Try a different OS/Browser. My guess is it's related to string encoding.

Log in to reply

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