2 ms·You could save stack space by transforming it into a loop. It’s still only O(n)!by layer8 11mo agoYou could save stack space by transforming it into a loop. It’s still only O(n)!