3 ms·
If you want to do several searches on the same data - that is initially unsorted - you can get better than O(n) per query. But like you said - not for the firs
by eru 19y ago
If you want to do several searches on the same data - that is initially unsorted - you can get better than O(n) per query. But like you said - not for the first one.