Live streamed another episode of Solving Advent of Code in Rust on Twitch:
🦀 Rust vs 🐍 Python: Advent of code in Rust - solving day 18/2021 PART 2 (Twitch Live 2022-07-18)
https://www.youtube.com/watch?v=sKZUhj4VmZg
In this episode, we completed PART 1 & 2 of day 18 of Advent of Code y2021 in both Python and Rust.
The previous episode of this stream is available here: https://www.youtube.com/watch?v=JMqip...
In PART 2 of this exercise we needed to create permutations for a vector and we ended up implementing that in 3 different ways (with benchmarks):
1. nested for loops
2. our own iterator
3. using itertools
Surprisingly, it turned out that method 2 is faster!
If you have any suggestion, we'd love to hear it, so please leave a comment or a create a PR!
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
#Rust #Python #AoC
In this episode, we completed PART 1 & 2 of day 18 of Advent of Code y2021 in both Python and Rust.
The previous episode of this stream is available here: https://www.youtube.com/watch?v=JMqip...
In PART 2 of this exercise we needed to create permutations for a vector and we ended up implementing that in 3 different ways (with benchmarks):
1. nested for loops
2. our own iterator
3. using itertools
Surprisingly, it turned out that method 2 is faster!
If you have any suggestion, we'd love to hear it, so please leave a comment or a create a PR!
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
#Rust #Python #AoC