please add the following testing cases "[,]" and "[,]". I believe there are problems in all the solutions passed and posted here.
How about "123, 345", what answer is expected to be correct? "[123, 345]" or 123. The system gives 123, which is also wrong
@justdoit2000 , in the question description, it already mentioned string does not contain white space.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.