|
|
back to boardWhy i have WA11? I use a wave algo with a queue and edgecency matrix. But there is no mistake. When I wrote a O(m*n) algo it TLE'd on test #16. Your algo is wrong! Use topological sort for solve this problem. Your algo is wrong! Use topological sort to solve this problem. >> Your algo is wrong! >> Use topological sort to solve this problem There is no need in topological sort for this problem, I've got AC with just a simple wave. |
|
|