[AoC 2021] Day 1 | #Rust

preview_player
Показать описание
Solving advent of code in RUST!?!?

#rust #rustlang #programming #aoc2021
Рекомендации по теме
Комментарии
Автор

Good stuff, looking forward to more. Thanks TJ.

fridgedigga
Автор

Rust + Algebra ?! Teej must be a genius

oussaber
Автор

Squeaky clean code, well done!
I look forward to learning Rust ( coming from a cpp-focused background :P )

luislindgren
Автор

Prime always shows leaderboard on stream😅

RishabhRD
Автор

Instead of creating a bin entry in your toml you can put the source files in ./bin/day01.rs (or ./src/bin) to achieve the same result.

michaelbcker-larsen
Автор

Thanks for the tip
data.windows(4)
.fold(0, |acc, win| if win[0] < win[3] { acc + 1 } else { acc })

Megalcristo