В чем принципиальная разница между стеком и очередью?

В чем принципиальная разница между стеком и очередью?

Пожалуйста, помогите мне, я не могу найти разницу.

How Вы различаете стек и очередь?

Я искал ответ в различных ссылках и нашел этот ответ ..

В программировании высокого уровня,

a stack is defined as a list or sequence of elements that is lengthened by placing new elements "on top" of existing elements and shortened by removing elements from the top of existing elements. It is an ADT[Abstract Data Type] with math operations of "push" and "pop".

A queue is a sequence of elements that is added to by placing the new element at the rear of existing and shortened by removing elements in front of queue. It is an ADT[Abstract Data Type]. There is more to these terms understood in programming of Java, C++, Python and so on.

Могу ли я получить ответ, который является более подробным? Пожалуйста, помогите мне.

Ответы на вопрос(11)

Ваш ответ на вопрос