Ask Question
17 December, 04:41

Write an algorithm in pseudocode or english that would describe how to use a stack to reverse any list.

+4
Answers (1)
  1. 17 December, 07:36
    0
    Int data[n];

    int rev[n];

    for (i=0; i < n; i++)

    stack. push (data[n]);

    for (i=0; i
    rev[i] = stack. pop ();
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write an algorithm in pseudocode or english that would describe how to use a stack to reverse any list. ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers