|
|
|
|
|
by onos
1641 days ago
|
|
This was fun and simpler than I was anticipating: After first reading the problem statement I assumed we’d need to do some sort of search to get the connected clusters, but we see here the line to draw at any point is determined completely by local info. Neat! |
|
Now I am wondering if you could use the alternative for case 5 or 10, but not both.