Hi,
So I'm doing computer science, and we've moved onto data structures, and for some reason i'm having a difficult time getting my head around some concepts. Mainly, Stacks and Queues.
My confusion is that I don't understand exactly what they are (specific, I know). Like, in terms of a Stack, from its properties and its function I'd assume its just another Collection, like an Array, but I feel like I'm missing something. I decided to Google this, and look over lecture notes, and i've just been left more confused. I'm seeing people use stacks in arrays or something like that and i'm starting to wonder what I'm missing
To clarify, I know about the properties of a Stack (FILO for example), and I know that they can be used as a collection, but is it as simple as "Do i use a Stack or an Array"?
Thanks a lot for baring with me on my most confusing question yet,
Danny
So I'm doing computer science, and we've moved onto data structures, and for some reason i'm having a difficult time getting my head around some concepts. Mainly, Stacks and Queues.
My confusion is that I don't understand exactly what they are (specific, I know). Like, in terms of a Stack, from its properties and its function I'd assume its just another Collection, like an Array, but I feel like I'm missing something. I decided to Google this, and look over lecture notes, and i've just been left more confused. I'm seeing people use stacks in arrays or something like that and i'm starting to wonder what I'm missing
To clarify, I know about the properties of a Stack (FILO for example), and I know that they can be used as a collection, but is it as simple as "Do i use a Stack or an Array"?
Thanks a lot for baring with me on my most confusing question yet,
Danny