andreepviviano andreepviviano
  • 04-03-2017
  • Computers and Technology
contestada

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

Respuesta :

padawan
padawan padawan
  • 04-03-2017
int data[n];
int rev[n];

for (i=0; i < n; i++)
     stack.push(data[n]);
for (i=0; i <n; i++)
     rev[i] = stack.pop();

Answer Link

Otras preguntas

Summery of hamlet pls helppppp worth 20 points
PLEASE ANSWER ASAP THANK YOU!!! How much money will be in a bank account after 3 years if $9 is deposited at an interest rate of 5% compounded annually? Round
think about the objects which acts as concave or convex Mirrors in your surroundings write a report on it​
how do i answer these?
weigh the jar ( Passive)​
Why was radio firmly controlled by the colonial administrations
Why was radio firmly controlled by the colonial administrations
What was Thomson's model of the atom called? A. The oil-drop model B. The photoelectric model C. The plum-pudding model D. The atomic theory model
Help me please………………………
Solve four and two fifths plus two and two thirds