7 ms·
I agree. Maybe it was hand implemented in python with lots of memory allocation and a few defects that made it accidentally quadratic.
by shoo 9y ago
I agree. Maybe it was hand implemented in python with lots of memory allocation and a few defects that made it accidentally quadratic.
- amichal 9y agoor some IO/parsing got mixed into the processing of each node. big-o is one problem. Forgetting or not noticing the constants is another