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.5K+ articles
Amazon
1.9K+ articles
Sorting
1.1K+ articles
Dynamic Programming
1.1K+ articles
Graph
565+ articles
DFS
360+ articles
BFS
228+ articles
Shortest Path
71+ articles
graph-connectivity
64+ articles
Topological Sorting
32 posts
Recent Articles
Find Course Schedule II
Last Updated: 22 October 2025
Given n courses, labeled from 0 to n - 1 and an array prerequisites[] where prerequisites[i] = [x, y] indicates that we need to take course y first if we want to take cour...
read more
Graph
Picked
DSA
Amazon
Topological Sorting
Shortest Supersequence by Sequence Reconstruction
Last Updated: 18 July 2026
Given an array arr[] and a 2D array sequences[], determine if arr is the shortest possible and the only supersequence for the given sequences. A supersequence is a sequenc...
read more
Graph
Picked
DSA
Google
Topological Sorting
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
Check if permutation of size N can form uniquely
Last Updated: 23 July 2025
Given array A[][2] of size M, form a new array B[] of size N, for every i from 1 to M we know BA[i][0] BA[i][1]. The task for this problem is to know if a permutation of ...
read more
Graph
DSA
BFS
Topological Sorting
Kahn's Algorithm vs DFS Approach: A Comparative Analysis
Last Updated: 19 October 2023
Topological sorting is a common problem in computer science that involves arranging the vertices of a directed acyclic graph (DAG) in a linear order such that for every di...
read more
Graph
Stack
Sorting
DSA
Topological Sorting
graph-connectivity
Data Structures
Data Structures-Tree Traversals
Data Structures-Stack
Data Structures-Graph
Minimize colours to paint graph such that no path have same colour
Last Updated: 23 July 2025
Given a directed graph with N nodes and M connections shown in the matrix mat[] where each element is of the form {xi, yi} denoting a directed edge from yi to xi. The task...
read more
Graph
Greedy
DSA
BFS
Topological Sorting
Graph Coloring
Check if given Arrays have a Unique Shortest Common Super-sequence
Last Updated: 23 July 2025
Given a 2D array arr[][] of size N*M which denotes N arrays, each of size M. The task is to check if all these arrays have a unique common supersequence.Examples:Input: N ...
read more
Algo Geek
Algo-Geek 2021
DSA
Arrays
Topological Sorting
Equivalent Serial Schedule of Conflict Serializable Schedule in DBMS
Last Updated: 23 July 2025
Prerequisite: Conflict Serializability, Precedence GraphConflict Serializable Schedule: A schedule is called conflict serializable if it can be transformed into a serial s...
read more
DBMS
Topological Sorting
DBMS-Transactions and Concurrency Control
Earliest Completion Time of Jobs
Last Updated: 24 July 2026
Given a Directed Acyclic Graph (DAG) with V jobs (numbered from 1 to V) and E dependency edges[][], where each edge [u, v] indicates that job v can start only after job u ...
read more
DSA
BFS
Topological Sorting
Data Structures-Graph
Algorithms-Graph Traversals
Graph Traversals
Detect cycle in Directed Graph using Topological Sort
Last Updated: 15 July 2025
Given a Directed Graph consisting of N vertices and M edges and a set of Edges[][], the task is to check whether the graph contains a cycle or not using Topological sort.T...
read more
DSA
DFS
Topological Sorting
Graph Traversals
Check if the given array can be constructed uniquely from the given set of subsequences
Last Updated: 12 July 2025
Given an array arr of distinct elements and a list of subsequences seqs of the array, the task is to check whether the given array can be uniquely constructed from the giv...
read more
DSA
Topological Sorting
Find the winner of the match | Multiple Queries
Last Updated: 12 July 2025
Given an array of pairs arr of size N which represents a game situation where the first player wins against the second player. Given multiple queries, each query contains ...
read more
Graph
Searching
Sorting
DSA
Arrays
Topological Sorting
Lexicographically Smallest Topological Ordering
Last Updated: 12 July 2025
Given a directed graph with N vertices and M edges that may contain cycles, the task is to find the lexicographically smallest topological ordering of the graph if it exis...
read more
DSA
Topological Sorting
Course Schedule I
Last Updated: 24 March 2026
Given n courses labeled from 0 to n - 1, and an array prerequisites[][] where prerequisites[i] = [x, y] indicates that you must take course y before taking course x. Retur...
read more
Graph
Technical Scripter
Technical Scripter 2018
DSA
BFS
DFS
Topological Sorting
graph-cycle
Find the ordering of task from given dependencies (Course Schedule II)
Last Updated: 11 July 2025
Given a total of N tasks that you have to pick, labelled from 0 to N-1. Some tasks may have prerequisite tasks, for example, to pick task 0 you have to first finish task 1...
read more
Graph
Technical Scripter
Technical Scripter 2018
DSA
BFS
DFS
Topological Sorting
1
2
3