Sir, In question no 10 why the space complexity is O(1) .it should be O(n).
As it will be stored in stack of n spaces?
Read more… (25 words)
Sir, In question no 10 why the space complexity is O(1) .it should be O(n).
As it will be stored in stack of n spaces?