大家讲道理2017-04-17 13:22:35
After a cursory glance, j and k both start from 0, so [j-1][k]
and [j][k-1]
will fail
PHP中文网2017-04-17 13:22:35
Try using a queue, breadth-first traversal, there are obviously some problems with using a for loop, for example, if you take m=1, you don’t look at the code carefully...