Space Complexity with no variables defined
Space Complexity with no variables defined Question: Suppose I had some code: def foo(forest: list[list[int]]) -> int: return sum([1 for tree in forest for leaf in tree]) In this code, no variables are defined. Everything is evaluated in one line, which means to my knowledge the data isn’t being stored anywhere. Does that mean this …