---
title: "Discussion on \"Graph Algorithms for Coding Interviews: When to Use BFS, DFS, or Dijkstra\" | Hashnode"
description: "Discussion on \"Graph Algorithms for Coding Interviews: When to Use BFS, DFS, or Dijkstra\". Learn when to use BFS, DFS, or Dijkstra in coding interviews. Decision framework, complexity, and classic problems for each algorithm."
url: "https://hashnode.com/posts/graph-algorithms-for-coding-interviews-when-to-use-bfs-dfs-or-dijkstra/6a004c68e3eebc2e20584ea5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Graph Algorithms for Coding Interviews: When to Use BFS, DFS, or Dijkstra](https://alexmateo.hashnode.dev/graph-algorithms-for-coding-interviews-when-to-use-bfs-dfs-or-dijkstra?utm_source=hashnode&utm_medium=feed)

Learn when to use BFS, DFS, or Dijkstra in coding interviews. Decision framework, complexity, and classic problems for each algorithm.

May 10 · 11 min read · alexmateo.hashnode.dev  
Read the article

-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#graphs](https://hashnode.com/tag/graphs)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#leetcode-solution](https://hashnode.com/tag/leetcode-solution)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#coding](https://hashnode.com/tag/coding)
-   [#interview](https://hashnode.com/tag/interview)
-   [#bfs](https://hashnode.com/tag/bfs)
-   [#dijkstra](https://hashnode.com/tag/dijkstra)
-   [#data-structures](https://hashnode.com/tag/data-structures)

## Written by

[Alex Mateo](https://hashnode.com/@alexmateo)

@alexmateo · Madrid, Spain

  
[View profile](https://hashnode.com/@alexmateo)

Software Engineer from Madrid, Spain. Founder of Expora.

I’m a software engineer who cares less about clever code — and more about systems that keep working when reality changes. Most of my professional work has been in .NET / C#, building and refactoring real production systems: APIs, legacy platforms, data pipelines, and cloud infrastructure.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
