Ask Question

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

+2
Answers (1)
  1. 19 April, 22:30
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers