← ALL NOTES
Depth-First Search

3310. Remove Methods From Project

The removable set is fixed the moment you know k: it is every method k can reach through the call graph, nothing more. The only real question is whether removing that whole block leaves a dangling call from a method that survives.

Loading…