Optimizing an Algorithm That’s Quadratic by Design

2 points by elasticdog