Find Eventual Safe States | Leetcode 802

  Рет қаралды 2,361

Techdose

Techdose

Күн бұрын

Пікірлер: 21
@kanirudh6820
@kanirudh6820 14 сағат бұрын
Actually i watched several videos but recently i noticed that always your way of explaining makes me understand things .Not everyone's cup of tea .Keep going bro🔥🔥
@techdose4u
@techdose4u 5 сағат бұрын
🙏🏼
@theseshadesgucci9354
@theseshadesgucci9354 2 күн бұрын
nice explanation with illustrations ! keep up the good work man really appreciated
@techdose4u
@techdose4u 2 күн бұрын
thanks
@pavanpandya9080
@pavanpandya9080 2 күн бұрын
Great Explanation.
@techdose4u
@techdose4u 2 күн бұрын
Thanks
@allwell8570
@allwell8570 2 күн бұрын
Best Explanation
@techdose4u
@techdose4u 2 күн бұрын
🙏🏼
@tejaschavan007
@tejaschavan007 2 күн бұрын
Grate Explanation💥
@techdose4u
@techdose4u 2 күн бұрын
welcome
@YuelaiSu
@YuelaiSu 2 күн бұрын
Good explanation
@techdose4u
@techdose4u 2 күн бұрын
Thanks and welcome
@divypareek8230
@divypareek8230 2 күн бұрын
Great explanation sir
@techdose4u
@techdose4u 2 күн бұрын
thanks
@sailendrachettri8521
@sailendrachettri8521 2 күн бұрын
Thank you sir :)
@techdose4u
@techdose4u 2 күн бұрын
welcome
@Anikait-h3d
@Anikait-h3d 2 күн бұрын
it was difficult. had to see video multiple times. i still couldnt undertand why we are doing and operation on isSafe ,checkSafeState ans
@techdose4u
@techdose4u 2 күн бұрын
to optimise runtime. sane result of a node like in DP
@Marvel9-j4d
@Marvel9-j4d 2 күн бұрын
Today you uploaded late . 😢
@techdose4u
@techdose4u 2 күн бұрын
prediction of question dint work :)
@gypsygirlkigypsylife
@gypsygirlkigypsylife Күн бұрын
can u detect the error class Solution { public: vectorsafe_node; bool dfs(vector& graph,vector&visited,int i){ visited[i]=1; bool is_safe=false; for(int neigh:graph[i]){ if(visited[neigh]==0){ is_safe&=dfs(graph,visited,neigh); } else if(visited[neigh]==1){//cycle return safe_node[i]=false; } else if(visited[neigh]==2){//already computed is_safe&=safe_node[neigh]; } } visited[i]=2; return safe_node[i]=is_safe; } vector eventualSafeNodes(vector& graph) { int n=graph.size(); safe_node=vector(n,true); vectorvisited(n,0); for(int i=0;i
zig will change programming forever
9:34
Low Level
Рет қаралды 406 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Linked List Cycle II | Live Coding with Explanation | Leetcode #142
5:07
Algorithms Made Easy
Рет қаралды 10 М.
G-20. Find Eventual Safe States - DFS
23:43
take U forward
Рет қаралды 196 М.
Maximum Employees to Be Invited to a Meeting | Leetcode 2127
52:53
Find Eventual Safe States - Leetcode 802  - Python
13:18
NeetCodeIO
Рет қаралды 7 М.
one year of studying (it was a mistake)
12:51
Jeffrey Codes
Рет қаралды 256 М.
"BEST C++ CODE ever written" // Code Review
27:38
The Cherno
Рет қаралды 124 М.
I Found A Secret Database Of Recruiter Rejection Reasons
9:18
Rahul Pandey
Рет қаралды 27 М.
How He Got $600,000 Data Engineer Job
19:08
Sundas Khalid
Рет қаралды 213 М.
G-25. Find Eventual Safe States - BFS - Topological Sort
16:57
take U forward
Рет қаралды 165 М.
Course Schedule IV | Leetcode 1462
14:01
Techdose
Рет қаралды 795