Without context, it is rather difficult to answer. "O (logn) + O (n)" alone does not make much sense, since the asymptotic complexity of any given algorithm will be determined by the linear term, so the notation "+ O (logn)" does not explain anything.
source share