Skip to content

Commit

Permalink
Add day 03
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishco committed Dec 3, 2024
1 parent 5c7642c commit 18f87c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/02.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fn checking_level(numbers: &Vec<i32>) -> bool {

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

if diff < 1 || diff > 3 {
if !(1..=3).contains(&diff) {
//unsafe
return false
}
Expand Down

0 comments on commit 18f87c4

Please sign in to comment.