Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок2 ответов
+ 1
If you feel you need to optimize in Python, chances are you shouldn't be using it.
Other than that, look up memory complexities of different algorithms(language independent) and use the appropriate one.
0
Thanks for the advice!