mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-09 19:44:45 +08:00
Apply suggestions from code review
This commit is contained in:
@ -418,7 +418,7 @@ impl Solution {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn dfs(
|
pub fn dfs(
|
||||||
grid: &Vec<Vec<i32>>,
|
grid: &[Vec<i32>],
|
||||||
visited: &mut [Vec<bool>],
|
visited: &mut [Vec<bool>],
|
||||||
(x, y): (i32, i32),
|
(x, y): (i32, i32),
|
||||||
count: &mut i32,
|
count: &mut i32,
|
||||||
@ -463,7 +463,7 @@ impl Solution {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn dfs(
|
pub fn dfs(
|
||||||
grid: &Vec<Vec<i32>>,
|
grid: &[Vec<i32>],
|
||||||
visited: &mut [Vec<bool>],
|
visited: &mut [Vec<bool>],
|
||||||
(x, y): (i32, i32),
|
(x, y): (i32, i32),
|
||||||
count: &mut i32,
|
count: &mut i32,
|
||||||
|
Reference in New Issue
Block a user