You are viewing a single comment's thread. Return to all comments →
len(s) has a constant time complexity (see "Get Length" under list on this page). You're not saving (much) time storing it in another variable.
len(s)
list
Seems like cookies are disabled on this browser, please enable them to open this website
The Minion Game
You are viewing a single comment's thread. Return to all comments →
len(s)
has a constant time complexity (see "Get Length" underlist
on this page). You're not saving (much) time storing it in another variable.