day 08 - advent of code 2024 in rust

  Рет қаралды 1,222

chris biscardi

chris biscardi

Күн бұрын

Пікірлер: 7
@misterwoody_
@misterwoody_ 19 күн бұрын
I mentally substituted "antenna" for "satellite" based on the problem on Advent of Code (hope I understood it correctly) - that was the easy part. Thanks for the daily uploads. Certainly learning a lot about nom.
@bas-ie
@bas-ie 10 күн бұрын
haha I had the same experience!
@bas-ie
@bas-ie 10 күн бұрын
TIL successors! Thanks :)
@flwi
@flwi 19 күн бұрын
Nice one! Thanks for sharing! I found a more typesafe way to create the combinations. ``` let antinode_locations = locations .iter() .tuple_combinations() .flat_map(|(a, b)| { ... } ``` With that combinator from itertools you don't need to access the vec by indices. (9:54). Anyway - I'm quite impressed by how fast rusts iterators are while keeping the code readable.
@chrisbiscardi
@chrisbiscardi 18 күн бұрын
@@flwi ah tuple combinations would've been mint. Nice find.
@flwi
@flwi 18 күн бұрын
@@chrisbiscardi TIL ;-) "Mint" as slang for "excellent" or "perfect" is more commonly used in British and Australian English, often in phrases like "that's mint" or "it was mint." While some Americans might use it due to global cultural exchange, it's not a typical American slang term. In American English, similar expressions might be "that would have been awesome" or "that would have been perfect." If you saw this in context, you might be able to tell if it was written by someone from a region where "mint" is common slang, or if it was indeed a typo for another word.
@catsolstice
@catsolstice 17 күн бұрын
31:30 you should be able to just chain the two iterators without boxing anything (may need some adjustments)
day 09 - advent of code 2024 in rust
18:48
chris biscardi
Рет қаралды 1 М.
Learn JavaScript - Full Course for Beginners
3:26:43
freeCodeCamp.org
Рет қаралды 19 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
lofi hip hop radio 📚 beats to relax/study to
Lofi Girl
Рет қаралды 21 М.
day 10 - advent of code 2024 in rust
33:33
chris biscardi
Рет қаралды 923
day 11 - advent of code 2024 in rust
41:28
chris biscardi
Рет қаралды 1,1 М.
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 738 М.
Advent of Code 2024 Go - Day 12: Garden Groups
20:31
Josh Ackland
Рет қаралды 248
day 22 - advent of code 2024
53:49
chris biscardi
Рет қаралды 568
day 16 - advent of code 2024 in rust
28:02
chris biscardi
Рет қаралды 902
day 17 part 1 - advent of code 2024
48:35
chris biscardi
Рет қаралды 774
day 13   advent of code 2024 in rust
24:31
chris biscardi
Рет қаралды 789