Question

    What is the space complexity of program to reverse stack

    recursively?
    A O(1) Correct Answer Incorrect Answer
    B O(log n) Correct Answer Incorrect Answer
    C O(n) Correct Answer Incorrect Answer
    D O(n log n) Correct Answer Incorrect Answer
    E none Correct Answer Incorrect Answer

    Solution

    The correct answer is C

    Practice Next