I get this kind of error.
Submission Result: Runtime Error
Last executed input:
What is the input?
You should not have any System.out.println() statements. Remove it from your code.
I think you did not handle the situation when the input string is null.
for this question, there is no null input.
Thanks, I forget to delete it.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.