Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Greedy
1.4K+ articles
Graph
565+ articles
DFS
360+ articles
BFS
228+ articles
priority-queue
148+ articles
Greedy Algorithms
112+ articles
Shortest Path
71+ articles
Floyd-Warshall
7+ articles
Dijkstra
52 posts
Recent Articles
Minimum Time Required to Visit Each Disappearing Nodes
Last Updated: 23 July 2025
Given an undirected graph with n nodes that are represented by a 2D array edges where edges[i] = [ui, vi, timei] describes an edge between nodes ui and vi with a traversal...
read more
Graph
Picked
DSA
Dijkstra
Facebook
Interview-Questions
Is Dijkstra a greedy algorithm?
Last Updated: 23 July 2025
In the world of computer science and algorithms, there's a lot of talk about Dijkstra's algorithm and its classification as a "greedy" algorithm. In this article, we will ...
read more
DSA
Dijkstra
Greedy Algorithms
Data Structures and Algorithms-QnA
Modify shortest distance between source and destination to K
Last Updated: 23 July 2025
Given an undirected weighted connected graph with N nodes and M edges. The weight of the edges given can be a positive integer or -1. Your task is to replace -1 weights wi...
read more
Graph
Geeks Premier League
DSA
Dijkstra
Shortest Path
TCS-coding-questions
Geeks Premier League 2023
Minimizing Infection Time in a Directed Graph
Last Updated: 23 July 2025
Given a directed graph of N nodes [1, N] represented by a 2D array graph[][], and an integer K which is the initially infected node. The graph[i] = (ui, vi, wi) represents...
read more
Graph
Geeks Premier League
DSA
Dijkstra
Geeks Premier League 2023
Implement a parallel programming task using graphs
Last Updated: 23 July 2025
Given a weighted directed graph with N nodes and M edges along with a source node S, use Parallel Programming to find the shortest distance from the source node S to all o...
read more
Graph
Picked
Geeks Premier League
DSA
Dijkstra
Geeks Premier League 2023
Comparison between Shortest Path Algorithms:
Last Updated: 23 July 2025
Finding the shortest way is becoming more important in a world where time and distance matter. There are multiple shorted path algorithms exists. Therefore, in this articl...
read more
Graph
DSA
Dijkstra
BFS
DFS
bellman-ford
Floyd-Warshall
Shortest Path Algorithm Tutorial with Problems
Last Updated: 23 July 2025
In this article, we are going to cover all the commonly used shortest path algorithm while studying Data Structures and Algorithm. These algorithms have various pros and c...
read more
DSA
Dijkstra
BFS
Shortest Path
DFS
Topological Sorting
bellman-ford
Floyd-Warshall
Minimum cost to convert a '1' to a given number
Last Updated: 23 July 2025
Given a positive integer 'n'. Starting with 1 find the minimum cost required to convert it to n using the following operations : Multiply the number by 2 with costs aAdd 1...
read more
Graph
DSA
Dijkstra
Shortest Path
Data Structures-Graph
Greedy Algorithms
priority-queue
Ascending insertion of elements in graph
Last Updated: 23 July 2025
Given a graph consisting of vertices numbered from 1 to N and having M bidirectional edges connecting vertices u and v. Let P denote an entrance vertex. N elements are num...
read more
Graph
DSA
Dijkstra
Greedy Algorithms
Graph Traversals
Number of Ways to Reach Destination in Shortest Time
Last Updated: 18 November 2025
Given an undirected weighted graph containing V vertices from 0 to V-1 represented as an adjacency list adj[][], where each adj[u] contains pairs [v, t] indicating there i...
read more
Graph
DSA
Dijkstra
Dijkstra's Algorithm based Common Questions
Last Updated: 22 December 2025
Dijkstra’s Algorithm is one of the most popular algorithms in graph theory, used to find the shortest path from a single source to all other vertices in a graph with non-n...
read more
DSA
Dijkstra
Tutorials
Find the maximum product of edge weights in Graph
Last Updated: 10 July 2023
Given a directed, weighted graph with n nodes and e edges, the task is to find the maximum product of edge weights in any path starting from node 1 and ending at node n. N...
read more
Graph
DSA
Dijkstra
Count ways to reach destination of given Graph in minimum time
Last Updated: 23 July 2025
Given an undirected graph with N nodes (numbered from 0 to N-1) such that any node can be reached from any other node and there are no parallel edges. Also, an integer arr...
read more
Graph
Greedy
Technical Scripter
Picked
Technical Scripter 2022
DSA
Dijkstra
Geek in a Maze
Last Updated: 23 July 2025
Geek is in a maze of size N * M. Each cell in the maze is made of either '.' or '#'. An empty cell is represented by '.' and an obstacle is represented by '#'. The task is...
read more
Graph
Queue
Matrix
DSA
Dijkstra
BFS
Find Maximum Shortest Distance in Each Component of a Graph
Last Updated: 23 July 2025
Given an adjacency matrix graph[][] of a weighted graph consisting of N nodes and positive weights, the task for each connected component of the graph is to find the maxim...
read more
DSA
Dijkstra
DFS
1
2
3
4