why my answer is wrong?
the OutPut seems right!!
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.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.