Myvideo

Guest

Login

Advent of Code 2023 - Day 5

Uploaded By: Myvideo
1 view
0
0 votes
0

I placed 64th on part 1; 11th on part 2; now 5th overall. Lost track of time and started 44 seconds late. Oops. It went pretty well, considering. I'm surprised to see a problem as tricky as part 2 already. I find interval math tough to visualize. It's a longer video today because I spent a while cleaning up and explaining my solution code. Hopefully that's interesting and/or useful. I recommend using “inclusive on the left, exclusive on the right“ to represent intervals e.g. store [1,2,3] as [1,4). This has some nice properties, like “the length of [a,b) is b-a“ and “[a,b) [b,c) = [a,c)“. Solution: Problem:

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later