Advent of code in Rust - solving year 2020 exercise 13 - Part 2 (Twitch Live 2021-06-21)

Subscribers:
953
Published on ● Video Link: https://www.youtube.com/watch?v=NcKODh5riqk



Duration: 1:33:55
7 views
2


In this episode, we completed Advent of Code y2020 ex13 part 2 and started a small part of exercise 14 part 1.

We initially had a brute force solution for ex 13 part 2 but this solution was too slow to complete in any reasonable time. Roberto went off and used his brilliant mind to figure out a more optimized solution, while Luciano ended up doing some research on how other people solved it.

While Roberto coded his solution, Luciano discovered the Chinese Remainder Theorem (https://en.wikipedia.org/wiki/Chinese_remainder_theorem) and realised that Roberto just rediscovered the same theorem! :O

Chapeau to Roberto!

In this session we spent a little bit of time trying to figure out the difference between `let mut x = &y` and `let x = &mut y`. We are still a bit perplexed about this, so something worth researching a bit more. This seems like some good material: https://stackoverflow.com/a/29672875.

For all the source code check out the official GitHub repo: https://github.com/lmammino/rust-advent

For seeing the next episodes live check out our Twitch channel: https://twitch.tv/loige




Other Videos By Luciano Mammino (loige)


2021-09-14Advent of code in Rust - solving year 2020 exercise 18 p1 (Twitch Live 2021-09-13)
2021-09-06Advent of code in Rust - solving year 2020 exercise 17 p2 (Twitch Live 2021-09-06)
2021-08-30Advent of code in Rust - solving year 2020 exercise 17 p1 (Twitch Live 2021-08-30)
2021-08-24Advent of code in Rust - reviewing year 2020 exercise 16 - Part 2 + 17 p1 (Twitch Live 2021-08-23)
2021-08-17Advent of code in Rust - solving year 2020 exercise 16 - Part 2 (Twitch Live 2021-08-16)
2021-08-10Advent of code in Rust - solving year 2020 exercise 16 - Part 1 (Twitch Live 2021-08-09)
2021-07-12Advent of code in Rust - solving year 2020 exercise 15 - Part 1 & Part 2 (Twitch Live 2021-07-12)
2021-07-05Advent of code in Rust - solving year 2020 exercise 14 - Part 2 (Twitch Live 2021-07-05)
2021-06-28Advent of code in Rust - solving year 2020 exercise 14 - Part 1 (Twitch Live 2021-06-28)
2021-06-27Working on Rust crate "gmaps-static" (Google Static Maps API URL builder) - Twitch live 2021-06-27
2021-06-21Advent of code in Rust - solving year 2020 exercise 13 - Part 2 (Twitch Live 2021-06-21)
2021-06-14Advent of code in Rust - solving year 2020 exercise 13 - Part 1 (Twitch Live 2021-06-14)
2021-06-07Advent of code in Rust - solving year 2020 exercise 12 - Part 2 (Twitch Live 2021-06-07)
2021-05-31Advent of code in Rust - solving year 2020 exercise 12 - Part 1 (Twitch Live 2021-05-31)
2021-05-24Advent of code in Rust - solving year 2020 exercise 11 - Part 2 (Twitch Live 2021-05-24)
2021-05-19Advent of code in Rust - solving year 2020 exercise 11 (Twitch Live 2021-05-18)
2020-04-26Middy.js contribution graph



Tags:
rust
rustlang
live coding
advent of code
learning rust
pair programming
mob programming
coding
programming languages