Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
How to find the time complexity and space of non recursive program in Python?
1 ответ
+ 1
The same way you would for any other language. Analyze the program! If you don't know how, check out CLRS book.