You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working through LeetCode questions and your repo has been super useful to look at better solutions. I was working on LeetCode # 1135 (Connecting Cities with Minimum Cost) and was wondering if there is a way to use Prim's algorithm to solve it. Is there any particular reason to use Kruskal's vs Prim's?
If not, would you recommend a different question that will help me better understand prims algo.
This discussion was converted from issue #4 on July 05, 2021 14:29.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I've been working through LeetCode questions and your repo has been super useful to look at better solutions. I was working on LeetCode # 1135 (Connecting Cities with Minimum Cost) and was wondering if there is a way to use Prim's algorithm to solve it. Is there any particular reason to use Kruskal's vs Prim's?
If not, would you recommend a different question that will help me better understand prims algo.
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions