Search
⌘K

Leetcode 3310. Remove Methods From Project

Given a directed graph of method invocations, identify all methods reachable from k (suspicious); if no edge from any node outside that reachable set points into it, remove the suspicious group and return the remaining methods, otherwise return all methods unchanged.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.