Remix.run Logo
▲ bee_rider 3 hours ago

1 seems like the sort of thing that could be banged out quickly, but might have some optimization potential as well. Did you do a clever algorithm?

▲WesleyJohnson 3 hours ago | parent [-]

Not at all, some list comprehension and poorly optimized loops. I completely forgot about Collections. To be fair, most of day job (and side projects) are Django and we do a lot of our data analysis in the ORM and SQL, so I don't often reach for Collections or python-based analytics.