Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Big-O Runtime for filtering an NSArray using NSpredicate

what is the approximate big-O runtime for using an NSPredicate to filter an array? I can't seem to find anything about predicate runtimes. Thanks

like image 204
William Falcon Avatar asked Nov 04 '22 02:11

William Falcon


1 Answers

The Big-O for filtering an NSArray using NSPredicate will be O(n).

like image 57
Anoop Vaidya Avatar answered Nov 09 '22 21:11

Anoop Vaidya