|
|
|
|
|
by LPisGood
397 days ago
|
|
I’m not sure what you mean here. If you’re in the realm of “more space” than you’re not thinking of the time it takes. More precisely, I think it is intuitive that the class of problems that can be solved in any time given O(n) space is far larger than the class of problems that can be solved in any space given O(n) time. |
|
If your program uses O(n) memory, it must run at least in O(n) time (lower bound on time).