ma1*_*w28 2 cocoa-touch objective-c count nsarray
如果我做
[myArray count]
是O(1)还是O(n),其中n是数组中元素的数量?
小智 5
Core Foundation集合的源代码(构建Foundation集合)是开源的.如果你检查CFArray.c,你会看到它__CFArrayGetCount()是O(1).
__CFArrayGetCount()
归档时间:
14 年,8 月 前
查看次数:
185 次
最近记录: