Empresa engajada
What is the efficiency of finding an element in an unsorted array of strings
Sigiloso
O(n)
O(n/2), no?
Complexity is O(n) but running time can be faster if run parallel.
Yep the actual average time could be C * (N/2) but still the complexity in bigO format should be O(n).
Fique por dentro de todas as oportunidades e dicas internas seguindo as empresas de seus sonhos.
Comece a buscar vagas para receber atualizações e recomendações personalizadas.