why the commented code is working but not code outside the comments
ig there is a problem with the indegree dynamic array.Pls help me
Kahn's Algorithm Doubt
@dare_devil_007 1 mistake corrected and commented
dont forget to hit like and mark resolved if cleared
i tried to initialise it using memset(indegree,0,sizeof(indegree) but it’s not working whereas initialisation the array with for loop is working y?
@dare_devil_007 memset is only used to initialize with some spec values like -1 true false , memset dont do 0
1 Like