educative.io

Space complexity of Compilation Order

The stated space complexity of the provided solution is O(V). The solution creates a graph with O(E) edges. Should the space complexity be O(V+E)?


Course: Grokking Coding Interview Patterns in Python - AI-Powered Learning for Developers
Lesson: Solution: Compilation Order - Grokking Coding Interview Patterns in Python