1462. Course Schedule IV | Topological Sort | Kahn's Algorithm

  Рет қаралды 1,733

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер: 9
@ARYANMITTAL
@ARYANMITTAL Күн бұрын
Course Schedule (Famous Problem) - kzbin.info/www/bejne/bZPSZ5-hodujh6s But getting this in an Interview, we would be self doubting our most Optimal Solution 🫣
@mohammedajmal4264
@mohammedajmal4264 23 сағат бұрын
Thank you 😊
@coder6109
@coder6109 11 сағат бұрын
Hi @aryan why cant we solve this by first forming a map of the toposort array (element,level in the toposort) so if for (a,b) if map.get(a) is less this means this comes first in toposort but 1 things is left how will this ensure that a,b are connected or not so can use DSU for that so wont then time complexity by just (n^2) i.e. of toposort and dsu just takes ~ o(1) Please suggest am I correct ?
@shyamaharihar2425
@shyamaharihar2425 21 сағат бұрын
Explained well !
15 сағат бұрын
brother where is 3435. Frequencies of Shortest Supersequences
@vishalbairagi7238
@vishalbairagi7238 Күн бұрын
thanks bhaiya 🙏
@VIDITSHRIMALI-l8o
@VIDITSHRIMALI-l8o 19 сағат бұрын
code quality
@aryamukherjee4122
@aryamukherjee4122 20 сағат бұрын
Topo sort is fine but dfs also works right given the bound is only 100 ?
@BCS-IshtiyakAhmadKhan
@BCS-IshtiyakAhmadKhan 12 сағат бұрын
Yes
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
G-21. Topological Sort Algorithm | DFS
13:30
take U forward
Рет қаралды 366 М.
Every Sorting Algorithm Explained in 120 minutes (full series)
1:57:33
Kuvina Saydaki
Рет қаралды 82 М.
Jeff Dean: AI will Reshape Chip Design - NeurIPS 2024
43:53
GradientSpills
Рет қаралды 5 М.
Course Schedule IV - Leetcode 1462 - Python
17:25
NeetCodeIO
Рет қаралды 6 М.
G-22. Kahn's Algorithm | Topological Sort Algorithm | BFS
13:50
take U forward
Рет қаралды 292 М.
1462. Course Schedule IV - Day 28/31 Leetcode January Challenge
10:43
Programming Live with Larry
Рет қаралды 159
Big-O Notation - For Coding Interviews
20:38
NeetCode
Рет қаралды 558 М.
G-24. Course Schedule I and II | Pre-requisite Tasks | Topological Sort
11:32