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 0f1bea1 commit 5ce999cCopy full SHA for 5ce999c
src/day05.rs
@@ -5,6 +5,7 @@ fn parse_input(input: &str) -> Vec<&str> {
5
fn decode(s: &str) -> u16 {
6
let (mut a, mut b) = (0, (1 << s.len()) - 1);
7
for ch in s.trim().chars() {
8
+ #[allow(clippy::manual_div_ceil)]
9
let delta = (b - a + 1) / 2;
10
match ch {
11
'F' | 'L' => b -= delta,
0 commit comments