logoalt Hacker News

bee_rider • today at 3:36 PM • 1 reply • view on HN

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?


Replies

WesleyJohnson • today at 3:41 PM

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.