Sort 11 Discussions, By:
Please Login in order to post a comment
i am having a wrong answer with 5th and 6th test case but others are working could you tell me what problem could i be making?
For me, optimised Prim's with min priority queue worked.
Prim is the best suited as graph has too many edges. However Kruskal is also fine ;)
100 points are 100 points, no matter how you get it :P
Wrong answer on test cases 5 and 6 with two different implementations of the Prim's algorithm using Java 8: https://github.com/veniva/algo-minimal-network
why are comments blocked on problem 106?