image
Constant Space: O(1)
O(1) space: Same memory, no matter the input size! Like a single scratchpad for any calculation ๐ #ConstantSpace #O1 #Memory
0
0
0
0
image
Constant Space: O(1)
O(1) space: Same memory, no matter the input size! Like a single scratchpad for any calculation ๐ #ConstantSpace #O1 #Memory