Like the previous one, first store current number to the map, then use dfs to do the filling. One thing need to keep in mind is that if we use 2d array/vector to store, remember we need to let 2rd dim represent the number, not the index.
微信扫一扫
Like the previous one, first store current number to the map, then use dfs to do the filling. One thing need to keep in mind is that if we use 2d array/vector to store, remember we need to let 2rd dim represent the number, not the index.
相关推荐