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 58976a8 commit aa908abCopy full SHA for aa908ab
src/bin/2024_02/main.rs
@@ -6,8 +6,7 @@ fn good_difference(seq: &[u32]) -> bool {
6
.windows(2)
7
.map(|w| i64::from(w[1]) - i64::from(w[0]))
8
.collect();
9
- diff_seq.iter().all(|x| *x >= 1 && *x <= 3)
10
- || diff_seq.iter().all(|x| *x >= -3 && *x <= -1)
+ diff_seq.iter().all(|x| *x >= 1 && *x <= 3) || diff_seq.iter().all(|x| *x >= -3 && *x <= -1)
11
}
12
13
fn good_sequence<const PART: usize>(seq: &[u32]) -> bool {
0 commit comments