Skip to content

Commit 18f87c4

Browse files
committed
Add day 03
1 parent 5c7642c commit 18f87c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/02.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fn checking_level(numbers: &Vec<i32>) -> bool {
4040

4141
let diff = (next - curr).abs();
4242

43-
if diff < 1 || diff > 3 {
43+
if !(1..=3).contains(&diff) {
4444
//unsafe
4545
return false
4646
}

0 commit comments

Comments
 (0)