Fidelity Investments interview question

Explain Prim's algorithm with a real time example .

Interview Answer

Anonymous

Oct 15, 2023

I explained him the working of Prim's algorithm by drawing a sample graph and explaining him how I would get a minimum spanning tree.