From c20904eab90f472d9f94334e52594611af6a4496 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 8 Dec 2021 14:43:11 +0100 Subject: Fix when use search by cols --- day4/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day4/src/main.rs b/day4/src/main.rs index 6e44c10..4b2f9b3 100644 --- a/day4/src/main.rs +++ b/day4/src/main.rs @@ -30,7 +30,7 @@ fn part1(grids: &Vec>, mut inputs: Vec) -> u32 { } // Search by cols - if winner >= 0 { + if winner < 0 { for j in 0..5 { let mut n = 0; for k in [0, 5, 10, 15, 20] { -- cgit v1.2.3-18-g5258