my Java answer:
Why my format is different from the formal one?
because the function is 'void',so I change the 'board'
Thanks a lot!
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.