Давайте освежим в памяти, что такое обозначения типа O(log n), и как оценивается сложность алгоритмов.
zen.yandex.ruIn mathematics, O(n) may refer to: O(n), the orthogonal group. Big O notation, indicating the order of growth of some quantity as a function of n or the limiting behavior of a function, e.g. in computational complexity theory. The nth tensor power of Serre's twisting sheaf.
en.wikipedia.orghabr.com
www.quora.com
stackoverflow.com
algolist.manual.ru
Если вы всё ещё не понимаете, что такое вычислительная сложность алгоритмов, и ждете простое и понятное объяснение, — эта статья для вас.
tproger.ru