Добавить
Уведомления

Dijkstra’s Algorithm for Coding Interviews | Single Source Shortest Path (Greedy Algorithm)

We'll cover everything you need to know about Dijkstra's algorithm for your coding interview. Dijkstra is a very important graph algorithm. It is a greedy algorithm used to find the shortest path from a single source node to all other nodes in a graph. In this video, we’ll learn when to use Dijkstra, how Dijkstra works (with pseudo code, actual code and an example walk through) and we’ll finish with a space & time complexity analysis. Dijkstra can be used to solve a variety of coding interview questions. We’ll use the algorithm and code we write in this video in the next one, to solve 2 LeetCode coding questions.

Иконка канала Кодерские решения
8 подписчиков
12+
16 просмотров
2 года назад
12+
16 просмотров
2 года назад

We'll cover everything you need to know about Dijkstra's algorithm for your coding interview. Dijkstra is a very important graph algorithm. It is a greedy algorithm used to find the shortest path from a single source node to all other nodes in a graph. In this video, we’ll learn when to use Dijkstra, how Dijkstra works (with pseudo code, actual code and an example walk through) and we’ll finish with a space & time complexity analysis. Dijkstra can be used to solve a variety of coding interview questions. We’ll use the algorithm and code we write in this video in the next one, to solve 2 LeetCode coding questions.

, чтобы оставлять комментарии