You are viewing a single comment's thread. Return to all comments →
Elegant. Possibly varies in runtime complexity from Prim's algorithm, since the total edge list is searched for an eligible candidate at each step.
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Prim's (MST) : Special Subtree
You are viewing a single comment's thread. Return to all comments →
Elegant. Possibly varies in runtime complexity from Prim's algorithm, since the total edge list is searched for an eligible candidate at each step.