lundi 27 novembre 2017

is it good to use std::find in c++

what is the time complexity of std::find, when the elements are large in a container(e.x. vector) in c++? Is it good to use std::find for large elements in a container, if not, then is it good to use our own version of find() - means, sort the elements and do binary search or something like that?

Aucun commentaire:

Enregistrer un commentaire