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:
4 views
413
80
1 month ago 01:00:01 1
Геннадий Горин целый час гуляет на снежном поле зимой под DSBM
2 months ago 00:02:34 1
Theme Song for Bhagawan’s 99th Birthday | Namo Namo Sri Sathya Sai
2 months ago 04:51:16 1
Sins of a Solar Empire II | Video Game Soundtrack (Full OST)
2 months ago 00:37:15 1
THE MOST BEAUTIFUL CHRISTMAS VILLAGE IN THE WHOLE WORLD 🎄 RIQUEWIHR 🎅 THE REAL MAGIC OF CHRISTMAS
2 months ago 00:03:56 1
Ordained Adventist Female Pastor Screams for the Pentecostal Fire
2 months ago 00:20:20 1
“Advent Raw Eggs x Tango Circuit“ — Arctic Eggs and Buckshot Roulette Mini Concert
2 months ago 00:59:46 1
Regimes Around the World Are Starting to TEAM UP (w/ Anne Applebaum) | Shield of the Republic
2 months ago 00:03:05 1
Yugioh Sevens Sound Rush 1 #34 Advent
2 months ago 00:10:11 1
WE FOUND abandoned TRAINS in the USSR depot
2 months ago 00:02:27 1
Hololive EN -Advent- War Thunder Sound Mod PV
2 months ago 00:42:24 1
Quilting and Crochet come together in a very satisfying way!
2 months ago 00:26:45 1
BONUS: Guestsplaining David Henrie on Faith, Family and Sharing Joy | Fr. Patrick Briscoe
2 months ago 00:29:38 1
КНИЖНЫЙ МАРАФОН 📚 ПРОЧИТАТЬ КНИГУ ЗА 3 ДНЯ 🧙🏻 ГАРРИ ПОТТЕР И УЗНИК АЗКАБАНА
2 months ago 00:00:54 1
Stealing Cash and Two Broads! #charliechaplin #vintage #funny #history
2 months ago 00:05:08 2
Coldplay & Ed Sheeran - Fix You (Live at Shepherd’s Bush Empire)