More time complexity analysis.