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.
23rd Sep 2018, 9:16 AM
StefanGliga
0
Thanks for the advice!
23rd Sep 2018, 6:57 PM
John Ortiz
Vous avez souvent des questions comme celle-ci ?
Apprenez de maniĂšre plus efficace, gratuitement :