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 🫣
@mohammedajmal426423 сағат бұрын
Thank you 😊
@coder610911 сағат бұрын
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 ?
@shyamaharihar242521 сағат бұрын
Explained well !
15 сағат бұрын
brother where is 3435. Frequencies of Shortest Supersequences
@vishalbairagi7238Күн бұрын
thanks bhaiya 🙏
@VIDITSHRIMALI-l8o19 сағат бұрын
code quality
@aryamukherjee412220 сағат бұрын
Topo sort is fine but dfs also works right given the bound is only 100 ?