Isn’t the for loop supposed to have a space complexity of O(n) as the number of times the message is printed increases if we increase the elements of the array. Can someone please explain ? Thanks in advance.[text](https://m.youtube.com/watch?v=BBpAmxU_NQo&pp=ygUIRHNhIG1vc2g%3D]
From 15:53 onwards.
Image
(https://i.sstatic.net/fzugE3t6.jpg))
I thought it might be like that because of the i = 0. It is not changing. I don’t know, I’m a total beginner.
Mairon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1