Andrew and Alex
-
Accessing an item by index in an array We think O(1) but unsure. It should refer to the pointer directly.
-
Unshifting a new item into the beginning of an array O(n)
-
Pushing an item onto the end of an array O(n)
-
Upcasing a String If we know the difference between the ascii character codes, then O(n)
-
Reversing a String O(n)
-
Finding the max of an array O(n)
-
splitting a String O(n^2)
-
Inserting a value to an Object O(1)
-
Retrieving the keys of an Object ({ foo: "bar" }.keys) O(n)