From 0a26a405cb70252a1dd4dc13438911ebff1f97d1 Mon Sep 17 00:00:00 2001 From: juan Date: Wed, 21 Sep 2022 14:05:57 +0800 Subject: [PATCH] vault backup: 2022-09-21 14:05:57 --- OJ notes/pages/Leetcode 01-Matrix.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OJ notes/pages/Leetcode 01-Matrix.md b/OJ notes/pages/Leetcode 01-Matrix.md index 6f497f4..425b2e6 100644 --- a/OJ notes/pages/Leetcode 01-Matrix.md +++ b/OJ notes/pages/Leetcode 01-Matrix.md @@ -82,6 +82,9 @@ I tried with DFS, but #### BFS +> [!tip] +> Search from 0 instead of 1, can make it easier. + Start searching from 0s, because the search direction matters. pseudo code: