New course! Every coder should learn Generative AI!
Try a free lesson2 Answers
+ 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!