There's a mistake in the example that has been provided. According to the complexity analysis, the current example yields the exponential time complexity, not the previous one.
There's a mistake in the example that has been provided. According to the complexity analysis, the current example yields the exponential time complexity, not the previous one.