We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31e83c6 commit 63bb31fCopy full SHA for 63bb31f
src/leetcode/interview/amazon/find_circle_num.rs
@@ -17,7 +17,7 @@ impl Solution {
17
}
18
19
for i in 0..n {
20
- if is_connected[i].len() > 0 {
+ if !is_connected[i].is_empty() {
21
provinces += 1;
22
23
bfs(i, &mut is_connected);
0 commit comments