In my solution, I decided to add a 'break' in line 22. However, with this 'break' it returns an error. Without break, my solution accepted. Would you mind tell me why?
I have a question about my solution.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.