3 ms·
Make sure you follow the link to http://ridiculousfish.com/blog/posts/array.html http://ridiculousfish.com/blog/posts/array.html. It tells you that, in this cas
by Someone 14y ago
Make sure you follow the link to http://ridiculousfish.com/blog/posts/array.html http://ridiculousfish.com/blog/posts/array.html. It tells you that, in this case, this is not how the "underlying data structures actually work".
This NSMutableArray subclass has O(1) access, as one expects from an array. NSMutableArray itself, however, only guarantees O(log n).