Time complexity of the algorithm

join shbcf.ru