Advent of Code Again?

yes, lets do something that will require a bit more effort

Don't forget to install cargo-edit it will give you cargo add cargo-edit

cargo install cargo-edit
















Again, Thank you Mr Santa

Check out Advent of Code for yourself this year!

















Problem 2 : Fissures

No festivities

  1. You are given lines ((x1, y1) -> (x2, y2))
  2. Only consider horizontal and vertical lines
  3. We wont solve the actual problem as its a bit verbose!

Example input

0,9 -> 5,9
8,0 -> 0,8
9,4 -> 3,4
2,2 -> 2,1
7,0 -> 7,4
6,4 -> 2,0
0,9 -> 2,9
3,4 -> 1,4
0,0 -> 8,8
5,5 -> 8,2
















Typescript

this is be a bit verbose but we should be able to do this.

















Golang

Not much different.

















Rust

Most fun, most excellent, did I mention I like rust, btw?