Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a0cba4a

Browse files
committed
update
1 parent 2f3d9af commit a0cba4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

递归与回溯/LeetCode 1219. 黄金矿工.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959

6060
这题也是搜索相关,四个方向,不允许重复,不过这次我们需要从不同起点搜索,而且为了减少搜索次数,我们得从黄金数量不为0的点开始搜。然后每当走不下去的时候,就比较一下当前黄金数量,求出最大值即可。
6161

62+
![](https://img-blog.csdnimg.cn/20200913111143927.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MjQyOTcxOA==,size_16,color_FFFFFF,t_70#pic_center)
63+
64+
6265
```javascript
6366
/**
6467
* @param {number[][]} grid

0 commit comments

Comments
 (0)