I typed in my python code for this problem, and it works well on my local machine. However, when I clicked the submit button, it simply says "Compile Error" without giving me more error msg or exception for debugging. What should I do?
I think you are not suppose to "import" anything and should consider anything that is supposed to be "imported" already there.
For example, if you "import string" you get the compile error. Anyway this is my observation.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.