The Programming Interview from Hell
new.pythonforengineers.com
new.pythonforengineers.com
For those who may assume the system was memory/storage limited and that’s why it was written that way, no we had enough memory and storage.
Oh wait!
Only if you don’t know what they’re for and when they’re useful. You can speed up Java a lot if you instantiate LinkedList instead of ArrayList when you can get away with it.
And you’re definitely not hired.
Instantiates an array cus' it's faster!
Use case: random access to list elements.