Skip to main content

Command Palette

Search for a command to run...

Top 20 mostly asked Dsa Graph questions in interview

Published
2 min read
Top 20 mostly asked Dsa Graph questions in interview
S

Hi there, this is Sawan Kumar Jha a Tech Enthusiastic

  1. Implement Dijkstra's algorithm: This question is commonly asked by companies like Google, Amazon, Microsoft, and Facebook.

  2. Implement Kruskal's algorithm: This question is commonly asked by companies like Amazon, Microsoft, and Google.

  3. Implement Prim's algorithm: This question is commonly asked by companies like Amazon, Microsoft, and Google.

  4. Implement Breadth First Search (BFS): This question is commonly asked by companies like Amazon, Google, and Facebook.

  5. Implement Depth First Search (DFS): This question is commonly asked by companies like Amazon, Google, and Facebook.

  6. Find the shortest path between two nodes in a graph: This question is commonly asked by companies like Amazon, Google, and Microsoft.

  7. Determine whether a graph is bipartite or not: This question is commonly asked by companies like Amazon, Google, and Facebook.

  8. Detect a cycle in a directed graph: This question is commonly asked by companies like Amazon, Google, and Microsoft.

  9. Count the number of connected components in an undirected graph: This question is commonly asked by companies like Amazon, Google, and Facebook.

  10. Find the minimum spanning tree of a graph: This question is commonly asked by companies like Amazon, Microsoft, and Google.

  11. Topological sorting of a directed acyclic graph: This question is commonly asked by companies like Amazon, Google, and Facebook.

  12. Shortest path between all pairs of nodes in a weighted graph: This question is commonly asked by companies like Amazon, Microsoft, and Google.

  13. Clone a directed graph: This question is commonly asked by companies like Amazon, Google, and Microsoft.

  14. Check if there is a path between two nodes in a graph: This question is commonly asked by companies like Amazon, Google, and Facebook.

  15. Find the diameter of a tree or graph: This question is commonly asked by companies like Amazon, Google, and Microsoft.

  16. Find the strongly connected components of a directed graph: This question is commonly asked by companies like Amazon, Google, and Facebook.

  17. Convert a graph to its complement: This question is commonly asked by companies like Amazon, Google, and Microsoft.

  18. Find the maximum flow in a network flow graph: This question is commonly asked by companies like Amazon, Microsoft, and Google.

  19. Find the minimum cut in a network flow graph: This question is commonly asked by companies like Amazon, Microsoft, and Google.

  20. Find the kth shortest path in a graph: This question is commonly asked by companies like Amazon, Google, and Microsoft.

More from this blog

Sawan Kumar Jha

40 posts