+ 2
What is the benefits of stacks in data structure?
how can i do recommendations for stacks ?
3 Antworten
+ 2
In simple terms, think of a pile of papers on your desk, that is how a stack works for computers. It's a faster method than a heap, think your filing cabinet, because it stores things First On First Off. That makes access time constant, O(1) instead of O(N), basically.
FYI: Being ant-Wikipedia is like hating an encyclopaedia (which Wikipedia is a DDV of) or hating education. You should rethink you stance.
+ 1
Read the link I posted in your previous thread. It explains stacks in generic, simple terms.
For clarity:
https://simple.m.wikipedia.org/wiki/Stack_(data_structure)
+ 1
i want anything outside wikipedia