New course! Every coder should learn Generative AI!
Try a free lesson0
How to find the time complexity and space of non recursive program in Python?
1 Answer
+ 1
The same way you would for any other language. Analyze the program! If you don't know how, check out CLRS book.