4 ms·
This answer completely misses the point. Of course the algorithm could run "forever", thus triggering browser timeouts. But it could as well terminate early, p
by vog 15y ago
This answer completely misses the point. Of course the algorithm could run "forever", thus triggering browser timeouts.
But it could as well terminate early, providing a suboptimal but fast solution.