From 133bcc891579d10a767838e78280011932df09e1 Mon Sep 17 00:00:00 2001 From: Himangshu Saikia Date: Sat, 14 Dec 2024 08:17:43 +0100 Subject: [PATCH] minor --- src/bin/2024_14/main.rs | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/bin/2024_14/main.rs b/src/bin/2024_14/main.rs index 83661a0..1437426 100644 --- a/src/bin/2024_14/main.rs +++ b/src/bin/2024_14/main.rs @@ -29,6 +29,7 @@ fn largest_cluster(grid: &Grid) -> usize { fn solve( input: &str, ) -> usize { + let mut ans = 0; let mut positions: Vec = Vec::new(); let mut velocities: Vec = Vec::new(); @@ -49,9 +50,8 @@ fn solve = Grid::new(MAX_X as usize, MAX_Y as usize, '.'); for p in positions.iter() { map.set(&(p.x as usize, p.y as usize), '#'); @@ -92,17 +94,13 @@ fn solve