Toposort using DFS | graphs | GFG | Java | DSA | Hindi

Опубликовано: 26 Февраль 2026
на канале: ShashCode
1,438
48

Lecture Resources
https://github.com/Tiwarishashwat/Jav...

Problem Name:
Topological sort

Problem Statement:
Given an adjacency list for a Directed Acyclic Graph (DAG) where adj_list[i] contains a list of all vertices j such that there is a directed edge from vertex i to vertex j, with V vertices and E edges, your task is to find any valid topological sorting of the graph.

In a topological sort, for every directed edge u - v, u must come before v in the ordering.

Problem Link:
https://www.geeksforgeeks.org/problem...

Graph Playlist:
   • Graph Data Structure Series  

Samsung Interview Experience:
   • I cracked Samsung | SRIB Interview Experie...  

Company Tags:
Facebook | Amazon | Microsoft | Netflix | Google | LinkedIn | Pega Systems | VMware | Adobe | Samsung

Timestamp:
0:00 - Introduction

#ShashwatTiwari #coding​​ #problemsolving​