You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Approach: I would iterate through the trust[][] and would update the inDegree[] and outDegree[]
according to the values. once i am done with all the trust[][], i will loop from 1...n and return the judge if i find any person with n-1 inDegree abd 0 outDegree. else, just return -1.