Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content

I don't think Union Find is the right way to go about this question. modified Dijkstra is the proper way

Mohammed Dh Abbas

Aug 6, 2024

1

26

0

Apr 19, 2025

FYI you could just use a variation of dijkstra's and get the same time complexity with way less code

Ike Nwankwo

Jun 8, 2024

1

29

0

Apr 19, 2025

On this page