-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
My solution.
Here’s the link if anyone cares: https://github.com/hugseverycat/AOC2021/blob/master/day4.py
My solution is written in Pony which is an Actor based language so I obviously wanted to solve all the boards in parallel.
For each board I created a bitmask to track called numbers. Iterate through the bingo calls. If the call results in a line, I return the "answer" otherwise return the updated bitmask. After iterating over all boards I have a list of results, then for part 1, pick the first result that was a number rather than bitmask, and part 2 find the last result... It's pretty horrible when explained in words, but the code is.. ok-ish. https://github.com/mkst/aoc/blob/master/2021/04.q
With this, I managed to achieve a solution that's 6-7µs for part1 and ~10-11µs for part2 in Rust.