Y
Hacker News
new
|
ask
|
show
|
jobs
by
JohnKemeny
113 days ago
If you allow twice the solution, you can do it in
O(m log n)
time using MST.