Hi there,
I was studying algorithms and their time complexities in general and realized I didn't quite know what was the time complexity of some native methods in Javascript.
Does Array.prototype.push have a O(n) or O(1) time complexity ?
I thought "surely you'll find the answer on MDN". I assumed I'll find that answer like I do on the Redis Documentation :
https://redis.io/commands/lpush
So I'm throwing the idea in this thread. Do we want to add that kind of information ? If not, then why can't I find it ?
Thanks guys,